update events
This commit is contained in:
@@ -2,35 +2,27 @@ package model
|
||||
|
||||
import (
|
||||
"github.com/google/uuid"
|
||||
"github.com/lib/pq"
|
||||
"gorm.io/gorm"
|
||||
"time"
|
||||
)
|
||||
|
||||
type Event struct {
|
||||
gorm.Model
|
||||
ID uuid.UUID `gorm:"type:uuid;default:gen_random_uuid();primarykey"`
|
||||
Start time.Time `json:"start"`
|
||||
End time.Time `json:"end"`
|
||||
Author User `json:"author" gorm:"-"`
|
||||
AuthorId uuid.UUID `json:"-"`
|
||||
Employee User `json:"employee" gorm:"-"`
|
||||
EmployeeId uuid.UUID `json:"-"`
|
||||
Member PD `json:"member" gorm:"-"`
|
||||
MemberId uuid.UUID `json:"-"`
|
||||
Status string `json:"status"`
|
||||
MedicalCard Card `json:"medicalCard" gorm:"-"`
|
||||
MedicalCardId uuid.UUID `json:"-"`
|
||||
Services pq.Int32Array `json:"services" gorm:"type:integer[]"`
|
||||
OrgId uuid.UUID `json:"-"`
|
||||
ID uuid.UUID `gorm:"type:uuid;default:gen_random_uuid();primarykey"`
|
||||
Start time.Time `json:"start"`
|
||||
End time.Time `json:"end"`
|
||||
Author User `json:"author" gorm:"-"`
|
||||
AuthorId uuid.UUID `json:"-"`
|
||||
Medic User `json:"medic" gorm:"-"`
|
||||
MedicId uuid.UUID `json:"-"`
|
||||
Person PersonalInformation `json:"person" gorm:"-"`
|
||||
PersonId uuid.UUID `json:"-"`
|
||||
OrgId uuid.UUID `json:"-"`
|
||||
}
|
||||
|
||||
type CreateEvent struct {
|
||||
Start time.Time `json:"start"`
|
||||
End time.Time `json:"end"`
|
||||
EmployeeId uuid.UUID `json:"employee_id"`
|
||||
MemberId uuid.UUID `json:"member_id"`
|
||||
Status string `json:"status"`
|
||||
MedicalCardId uuid.UUID `json:"medical_card_id"`
|
||||
Services []int32 `json:"services"`
|
||||
Start time.Time `json:"start"`
|
||||
End time.Time `json:"end"`
|
||||
Person PersonalInformation `json:"person"`
|
||||
MedicId uuid.UUID `json:"medic_id"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user