// 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 TableNameFissionReferral = "fission_referral" // FissionReferral mapped from table type FissionReferral 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"` UserID int64 `gorm:"column:user_id;type:bigint;not null;index:idx_user_id,priority:1;comment:活动用户ID(fission_user表主键)" json:"user_id"` CampaignID int64 `gorm:"column:campaign_id;type:bigint;not null;index:idx_campaign_id,priority:1;comment:活动ID(fission_campaign表)" json:"campaign_id"` LimitStatus int8 `gorm:"column:limit_status;type:tinyint;not null;comment:任务限制状态(0-无限制,1-完成所有阶段任务,2-总预算限制,3-总邀请人数限制)" json:"limit_status"` BindInstall int8 `gorm:"column:bind_install;type:tinyint;not null;comment:是否绑定了安装事件(0-否,1-是)" json:"bind_install"` BindRegister int8 `gorm:"column:bind_register;type:tinyint;not null;comment:是否绑定了注册事件(0-否,1-是)" json:"bind_register"` NextStep int32 `gorm:"column:next_step;type:int;not null;comment:可领取的下一阶段奖品" json:"next_step"` LoopInvite int32 `gorm:"column:loop_invite;type:int;not null;comment:当前循环的数" json:"loop_invite"` } // TableName FissionReferral's table name func (*FissionReferral) TableName() string { return TableNameFissionReferral }