package model import "time" type Script struct { ID string `gorm:"primaryKey;size:8"` Title string `gorm:"size:128;not null"` Description string `gorm:"size:512"` Content string `gorm:"type:text;not null"` Runtime string `gorm:"size:16;not null;index"` AdminToken string `gorm:"size:64;not null"` Status string `gorm:"size:16;not null;default:draft;index"` ExpiresAt time.Time `gorm:"not null;index"` CreatedAt time.Time `gorm:"not null;autoCreateTime"` PublishedAt *time.Time `gorm:"index"` }