Add event type for event table
Signed-off-by: Asai Neko <sugar@sne.moe>
This commit is contained in:
@@ -14,6 +14,7 @@ type Event struct {
|
|||||||
UUID uuid.UUID `json:"uuid" gorm:"type:uuid;uniqueIndex;not null"`
|
UUID uuid.UUID `json:"uuid" gorm:"type:uuid;uniqueIndex;not null"`
|
||||||
EventId uuid.UUID `json:"event_id" 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"`
|
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"`
|
StartTime time.Time `json:"start_time" gorm:"index"`
|
||||||
EndTime time.Time `json:"end_time" gorm:"index"`
|
EndTime time.Time `json:"end_time" gorm:"index"`
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user