package models import ( "time" "gorm.io/gorm" ) type Event struct { gorm.Model 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"` EventType string `gorm:"size:1;not null;default:O" json:"eventtype"` // T = Test, N = Normal Transmitted string `gorm:"size:1;not null;default:N" json:"transmitted"` // Y = Already transmitted, N = Not transmitted yet }