From 83fe32696228474183cd236bc00562a83677885a Mon Sep 17 00:00:00 2001 From: Asai Neko Date: Thu, 1 Jan 2026 14:59:57 +0800 Subject: [PATCH] Add event type for event table Signed-off-by: Asai Neko --- data/event.go | 1 + 1 file changed, 1 insertion(+) 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"` }