|
|
// 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 TableNameFissionGold = "fission_gold"
|
|
|
|
|
|
// FissionGold mapped from table <fission_gold>
|
|
|
type FissionGold struct {
|
|
|
ID int64 `gorm:"column:id;type:bigint;primaryKey" 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"`
|
|
|
GoldNum int32 `gorm:"column:gold_num;type:int;not null;comment:获得的金币数" json:"gold_num"`
|
|
|
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;comment:下一节点要做的动作(open_gift-开礼品盒,show_reward-需要弹出奖品窗口,last_spin-提示最后一次抽奖获得奖品, giveaway-赠送能量,none-没有任何节点需要完成了)" 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 FissionGold's table name
|
|
|
func (*FissionGold) TableName() string {
|
|
|
return TableNameFissionGold
|
|
|
}
|