package rotation import "github.com/golangkit/formatime" type RecookRotationModel struct { ID uint `gorm:"column:id;primary_key" json:"id"` GoodsID uint `gorm:"column:goods_id" json:"goodsId"` URL string `gorm:"column:url" json:"url"` CreatedAt formatime.Second `gorm:"column:created_at" json:"createdAt"` ActiveID uint `gorm:"column:activity_id" json:"activityId"` Color string `gorm:"column:color" json:"color"` IsActive int8 `gorm:"column:is_active" json:"is_active"` BackgroundColor string `gorm:"column:background_color" json:"background_color"` StartTime formatime.Second `gorm:"column:start_time" json:"start_time"` EndTime formatime.Second `gorm:"column:end_time" json:"end_time"` SortId uint `gorm:"column:sort_id" json:"sort_id"` IsSale bool `json:"is_sale" gorm:"column:is_sale"` } // TableName sets the insert table name for this struct type func (r *RecookRotationModel) TableName() string { return "recook_diamond_show_info" }