diff --git a/data/event.go b/data/event.go index 22ed025..a9148ac 100644 --- a/data/event.go +++ b/data/event.go @@ -14,6 +14,7 @@ type Event struct { UUID uuid.UUID `json:"uuid" gorm:"type:uuid;uniqueIndex;not null"` EventId uuid.UUID `json:"event_id" gorm:"type:uuid;uniqueIndex;not null"` Name string `json:"name" gorm:"type:varchar(255);index;not null"` + Type string `json:"type" gotm:"type:varchar(255);index;not null"` StartTime time.Time `json:"start_time" gorm:"index"` EndTime time.Time `json:"end_time" gorm:"index"` }