package models import "time" type Event struct { Id uint `gorm:"primary key" json:"id"` Name string `gorm:"size:40;not null" json:"name"` Description string `gorm:"not null" json:"description"` ExpectedDate time.Time `gorm:"not null" json:"startDt"` UserId uint `gorm:"size:40;not null" json:"user"` User User EventType string `gorm:"size:1;not null;default:O" json:"eventtype"` // O = Open, C = Closed }