// Code generated by gorm.io/gen. DO NOT EDIT. // Code generated by gorm.io/gen. DO NOT EDIT. // Code generated by gorm.io/gen. DO NOT EDIT. package model const TableNameFissionCash = "fission_cash" // FissionCash mapped from table type FissionCash struct { ID int64 `gorm:"column:id;type:bigint;primaryKey;autoIncrement:true" json:"id"` CreatedAt int64 `gorm:"column:created_at;type:bigint;not null" json:"created_at"` UpdatedAt int64 `gorm:"column:updated_at;type:bigint;not null" json:"updated_at"` CampaignID int64 `gorm:"column:campaign_id;type:bigint;not null;index:idx_campaign_id_expired_in,priority:1;comment:活动id(fission_campaign表)" json:"campaign_id"` UserID int64 `gorm:"column:user_id;type:bigint;not null;index:idx_user_id,priority:1;comment:活动用户ID(fission_user表主键)" json:"user_id"` LotteryNum int8 `gorm:"column:lottery_num;type:tinyint;not null;comment:抽奖次数" json:"lottery_num"` NextStep string `gorm:"column:next_step;type:varchar(32);not null;default:0;comment:下一节点要做的动作(open_gift-开礼品盒,trigger_share-用户需要触发分享,show_reward-需要弹出奖品窗口,last_spin-提示最后一次抽奖获得奖品,none-没有任何节点需要完成了,invite_spin-等待完成邀请获得最后一次抽奖)" json:"next_step"` Energy int32 `gorm:"column:energy;type:int;not null;comment:剩余能量数" json:"energy"` ShowPrice float64 `gorm:"column:show_price;type:decimal(10,2);not null;default:0.00;comment:展示的金额" json:"show_price"` ExpiredIn int64 `gorm:"column:expired_in;type:bigint;not null;index:idx_campaign_id_expired_in,priority:2;comment:任务重置时间" json:"expired_in"` IsExpired int8 `gorm:"column:is_expired;type:tinyint;not null;comment:任务是否已过期(0-否,1-是)" json:"is_expired"` Lang string `gorm:"column:lang;type:varchar(5);not null;comment:语种" json:"lang"` } // TableName FissionCash's table name func (*FissionCash) TableName() string { return TableNameFissionCash }