You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
3.5 KiB
Go

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

// 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 TableNameFissionCampaignTask = "fission_campaign_task"
// FissionCampaignTask mapped from table <fission_campaign_task>
type FissionCampaignTask 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"`
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_type_mark,priority:1;comment:活动ID(fission_campaign表)" json:"campaign_id"`
TaskType int8 `gorm:"column:task_type;type:tinyint;not null;comment:任务类型(1-下载app,2-注册-app,3-满足所有自定义条件,4-满足特定自定义条件)" json:"task_type"`
TaskMark string `gorm:"column:task_mark;type:varchar(32);not null;index:idx_campaign_id_type_mark,priority:2;comment:任务类型标识" json:"task_mark"`
PropMark string `gorm:"column:prop_mark;type:varchar(32);not null;comment:发放的道具标识(chance-次数,fixed_roll-幸运骰,reward-奖品)" json:"prop_mark"`
Num int32 `gorm:"column:num;type:int;not null;comment:完成所需要的触发次数" json:"num"`
Chance int32 `gorm:"column:chance;type:int;not null;comment:完成发放的次数(如:骰子数)" json:"chance"`
ChanceLimit int32 `gorm:"column:chance_limit;type:int;not null;comment:最大可发放的次数" json:"chance_limit"`
TaskLimit int32 `gorm:"column:task_limit;type:int;not null;comment:任务最大可完成次数" json:"task_limit"`
Percent float64 `gorm:"column:percent;type:double(10,6);not null;default:0.000000;comment:完成发放的百分比值" json:"percent"`
PercentLimit float64 `gorm:"column:percent_limit;type:decimal(10,6);not null;default:0.000000;comment:最大获得的百分比值" json:"percent_limit"`
DayLimit int32 `gorm:"column:day_limit;type:int;not null;comment:每日可完成任务的次数(0为不限制)" json:"day_limit"`
LevelLimit string `gorm:"column:level_limit;type:varchar(1000);not null;default:0;comment:用户等级ID集合" json:"level_limit"`
LangMarks string `gorm:"column:lang_marks;type:varchar(255);not null;comment:语言限制集合" json:"lang_marks"`
WeekLimit int32 `gorm:"column:week_limit;type:int;not null;comment:每周限制数" json:"week_limit"`
WeekNum int8 `gorm:"column:week_num;type:tinyint;not null;comment:周几刷新" json:"week_num"`
RewardID int64 `gorm:"column:reward_id;type:bigint;not null;comment:发放的奖励id" json:"reward_id"`
HasPre int8 `gorm:"column:has_pre;type:tinyint;not null;comment:是否有前置条件(0-否,1-是)" json:"has_pre"`
PreCond int32 `gorm:"column:pre_cond;type:int;not null;comment:前置条件" json:"pre_cond"`
ExpiredMin int32 `gorm:"column:expired_min;type:int;not null;comment:过期分钟" json:"expired_min"`
AwardMode int8 `gorm:"column:award_mode;type:tinyint;not null;comment:领奖模式(0-自动领奖,1-手动领奖)" json:"award_mode"`
}
// TableName FissionCampaignTask's table name
func (*FissionCampaignTask) TableName() string {
return TableNameFissionCampaignTask
}