update events
This commit is contained in:
22
model/pd.go
22
model/pd.go
@@ -1,7 +1,23 @@
|
||||
package model
|
||||
|
||||
import "gorm.io/gorm"
|
||||
import "github.com/google/uuid"
|
||||
|
||||
type PD struct {
|
||||
gorm.Model
|
||||
type PersonalInformation struct {
|
||||
ID uuid.UUID `json:"id,omitempty"`
|
||||
FirstName string `json:"first_name,omitempty"`
|
||||
LastName string `json:"last_name,omitempty"`
|
||||
Patronymic string `json:"patronymic,omitempty"`
|
||||
Phone string `json:"phone,omitempty"`
|
||||
}
|
||||
|
||||
type PersonalInformationCreate struct {
|
||||
FirstName string `json:"first_name,omitempty"`
|
||||
LastName string `json:"last_name,omitempty"`
|
||||
Patronymic string `json:"patronymic,omitempty"`
|
||||
Contacts []Contact `json:"contacts"`
|
||||
}
|
||||
|
||||
type Contact struct {
|
||||
Category string `json:"category"`
|
||||
Value string `json:"value"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user