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"` ExpectedAudience int `gorm:"size:40;not null" json:"audience"` 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:U" json:"eventtype"` }