package gorm_model import ( "time" ) type YounggeeTeamBuying struct { TeamBuyingId int `gorm:"column:team_buying_id;primary_key;AUTO_INCREMENT"` // 团购id StoreId int `gorm:"column:store_id;NOT NULL"` // 所属门店ID TeamBuyingCategory string `gorm:"column:team_buying_category;NOT NULL"` // 团购类目(/分隔) TeamBuyingName string `gorm:"column:team_buying_name;NOT NULL"` // 团购标题 TeamBuyingPrice float64 `gorm:"column:team_buying_price;NOT NULL"` // 团购售价 PublicCommission int `gorm:"column:public_commission"` // 公开佣金% TeamBuyingDetail string `gorm:"column:team_buying_detail;NOT NULL"` // 团购详情 TeamBuyingLink string `gorm:"column:team_buying_link"` // 分销链接 IsDeleted int `gorm:"column:is_deleted;default:0;NOT NULL"` // 删除(0否 1是) OperateType int `gorm:"column:operate_type;NOT NULL"` // 操作人类型(1商家 2后台) EnterpriseId string `gorm:"column:enterprise_id;NOT NULL"` // 商家id SubAccountId int `gorm:"column:sub_account_id;default:0;NOT NULL"` // 商家子账号id CreatedAt time.Time `gorm:"column:created_at;NOT NULL"` // 创建时间 UpdatedAt time.Time `gorm:"column:updated_at"` // 更新时间 } func (m *YounggeeTeamBuying) TableName() string { return "younggee_team_buying" }