|
|
// 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 TableNameFissionCampaignReward = "fission_campaign_reward"
|
|
|
|
|
|
// FissionCampaignReward mapped from table <fission_campaign_reward>
|
|
|
type FissionCampaignReward 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"`
|
|
|
IsDel int8 `gorm:"column:is_del;type:tinyint;not null;comment:是否已删除(1-是,0-否)" json:"is_del"`
|
|
|
CampaignID int64 `gorm:"column:campaign_id;type:bigint;not null;index:idx_campaign_id,priority:1;comment:活动id(fission_campaign表)" json:"campaign_id"`
|
|
|
Title string `gorm:"column:title;type:varchar(32);not null;comment:奖品名称" json:"title"`
|
|
|
ImgURL string `gorm:"column:img_url;type:varchar(128);not null;comment:奖品图片" json:"img_url"`
|
|
|
Stock int32 `gorm:"column:stock;type:int;not null;comment:奖品库存" json:"stock"`
|
|
|
KvData string `gorm:"column:kv_data;type:varchar(2000);not null;comment:跳转链接自定义参数" json:"kv_data"`
|
|
|
UseStock int32 `gorm:"column:use_stock;type:int;not null;comment:已发放奖品数" json:"use_stock"`
|
|
|
Sort int32 `gorm:"column:sort;type:int;not null;comment:排序" json:"sort"`
|
|
|
RewardType int8 `gorm:"column:reward_type;type:tinyint;not null;comment:奖品类型(1-站内活动奖品,2-站外活动奖品,3-额外奖品,4-新人奖品)" json:"reward_type"`
|
|
|
Step int32 `gorm:"column:step;type:int;not null;comment:奖励阶段" json:"step"`
|
|
|
InviteNum int32 `gorm:"column:invite_num;type:int;not null;comment:需要邀请的人数" json:"invite_num"`
|
|
|
RewardNum int32 `gorm:"column:reward_num;type:int;not null;comment:获得的奖品数量" json:"reward_num"`
|
|
|
IsThank int8 `gorm:"column:is_thank;type:tinyint;not null;comment:是否谢谢参与(0-否,1-是)" json:"is_thank"`
|
|
|
Score int32 `gorm:"column:score;type:int;not null;comment:领取奖品的分数" json:"score"`
|
|
|
OldID int64 `gorm:"column:old_id;type:bigint;not null;comment:迁移前旧id" json:"old_id"`
|
|
|
SignDay int32 `gorm:"column:sign_day;type:int;not null;comment:签到天数" json:"sign_day"`
|
|
|
CollectNum int32 `gorm:"column:collect_num;type:int;not null;comment:收集碎片数" json:"collect_num"`
|
|
|
CollectRule string `gorm:"column:collect_rule;type:varchar(255);not null;comment:收集规则" json:"collect_rule"`
|
|
|
IsSuper int8 `gorm:"column:is_super;type:tinyint;not null;comment:是否超级大奖" json:"is_super"`
|
|
|
RewardID int64 `gorm:"column:reward_id;type:bigint;not null;comment:奖品id(reward表)" json:"reward_id"`
|
|
|
LangMark string `gorm:"column:lang_mark;type:varchar(10);not null;comment:奖品归属语言标识" json:"lang_mark"`
|
|
|
LevelID int64 `gorm:"column:level_id;type:bigint;not null;comment:奖品归属用户等级id(fission_user_level表)" json:"level_id"`
|
|
|
Odds int32 `gorm:"column:odds;type:int;not null;comment:中奖概率" json:"odds"`
|
|
|
CountryMark string `gorm:"column:country_mark;type:varchar(4);not null;comment:奖品归属国家标识" json:"country_mark"`
|
|
|
JumpURL string `gorm:"column:jump_url;type:varchar(255);not null;comment:跳转地址" json:"jump_url"`
|
|
|
HasRule int8 `gorm:"column:has_rule;type:tinyint;not null;comment:是否有领奖规则(0-否,1-是)" json:"has_rule"`
|
|
|
InitPercent float64 `gorm:"column:init_percent;type:decimal(5,2);not null;default:0.00;comment:初始助力进度" json:"init_percent"`
|
|
|
PropMark string `gorm:"column:prop_mark;type:varchar(255);not null;comment:道具类型(reward-奖品,chance-活动道具,point-积分)" json:"prop_mark"`
|
|
|
ExpiredDay string `gorm:"column:expired_day;type:varchar(10);not null;comment:过期天数" json:"expired_day"`
|
|
|
OpenAdd int8 `gorm:"column:open_add;type:tinyint;not null;comment:是否开启动态库存" json:"open_add"`
|
|
|
OpenTask int8 `gorm:"column:open_task;type:tinyint;not null;comment:开启任务解锁" json:"open_task"`
|
|
|
}
|
|
|
|
|
|
// TableName FissionCampaignReward's table name
|
|
|
func (*FissionCampaignReward) TableName() string {
|
|
|
return TableNameFissionCampaignReward
|
|
|
}
|