|
|
// 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 TableNameFissionUser = "fission_user"
|
|
|
|
|
|
// FissionUser mapped from table <fission_user>
|
|
|
type FissionUser struct {
|
|
|
ID int64 `gorm:"column:id;type:bigint;primaryKey;autoIncrement:true" json:"id"`
|
|
|
CreatedAt int64 `gorm:"column:created_at;type:bigint;not null;index:idx_created_at_campaign_id,priority:1" 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"`
|
|
|
HashID string `gorm:"column:hash_id;type:varchar(20);not null;uniqueIndex:uniq_hash_id,priority:1;comment:对外hash_id" json:"hash_id"`
|
|
|
CampaignID int64 `gorm:"column:campaign_id;type:bigint;not null;index:idx_sub_user_id_campaign_id,priority:2;comment:活动ID(campaign表主键)" json:"campaign_id"`
|
|
|
ChannelID int64 `gorm:"column:channel_id;type:bigint;not null;comment:渠道id(fission_campaign_channel表)" json:"channel_id"`
|
|
|
ParentID int64 `gorm:"column:parent_id;type:bigint;not null;index:idx_parent_id,priority:1;comment:上级ID" json:"parent_id"`
|
|
|
Deep int32 `gorm:"column:deep;type:smallint;not null;comment:推广深度" json:"deep"`
|
|
|
IsNew int8 `gorm:"column:is_new;type:tinyint;not null;comment:是否新安装用户(1-是,0-否)" json:"is_new"`
|
|
|
SubUserID string `gorm:"column:sub_user_id;type:varchar(50);not null;index:idx_sub_user_id_campaign_id,priority:1;comment:关注用户ID" json:"sub_user_id"`
|
|
|
DeviceID string `gorm:"column:device_id;type:varchar(50);not null;index:idx_device_id_campaign_id,priority:1;comment:设备ID" json:"device_id"`
|
|
|
UserMark string `gorm:"column:user_mark;type:varchar(50);not null;index:idx_campaign_id_user_mark,priority:2;comment:用户标识(当sub_user_id为空取device_id)" json:"user_mark"`
|
|
|
UserType int8 `gorm:"column:user_type;type:tinyint;not null;comment:用户类型(1-访客,2-参与用户)" json:"user_type"`
|
|
|
ParentIds string `gorm:"column:parent_ids;type:varchar(2000);not null;comment:祖上ID(父级以上,不包括父级)" json:"parent_ids"`
|
|
|
IsView int8 `gorm:"column:is_view;type:tinyint;not null;comment:是否为预览用户(1-是,0-否)" json:"is_view"`
|
|
|
ShareLink string `gorm:"column:share_link;type:varchar(128);not null;comment:分享链接" json:"share_link"`
|
|
|
Source int8 `gorm:"column:source;type:tinyint;not null;comment:来源(1-直接访问,2-打开事件,3-安装事件,4-注册事件,5-自定义事件,6-动态下载页,7-网页端首次打开,8-支付事件)" json:"source"`
|
|
|
IsHelp int8 `gorm:"column:is_help;type:tinyint;not null;comment:是否助力成功(0-否,1-是)" json:"is_help"`
|
|
|
LangMark string `gorm:"column:lang_mark;type:varchar(10);not null;comment:活动语言标识" json:"lang_mark"`
|
|
|
LevelMark string `gorm:"column:level_mark;type:varchar(255);not null;comment:请求带过来的等级标识" json:"level_mark"`
|
|
|
UserLevelMark string `gorm:"column:user_level_mark;type:varchar(64);not null;comment:用户等级标识" json:"user_level_mark"`
|
|
|
UserLevel int64 `gorm:"column:user_level;type:bigint;not null;comment:用户等级id标识" json:"user_level"`
|
|
|
FixedUserLevel int8 `gorm:"column:fixed_user_level;type:tinyint;not null;comment:用户等级是否已经固定(0-否,1-是)" json:"fixed_user_level"`
|
|
|
UserLang string `gorm:"column:user_lang;type:varchar(10);not null;comment:用户语言标识" json:"user_lang"`
|
|
|
UserCountry string `gorm:"column:user_country;type:varchar(10);not null;comment:用户国家标识" json:"user_country"`
|
|
|
JoinAt int64 `gorm:"column:join_at;type:bigint;not null;comment:进入活动的时间" json:"join_at"`
|
|
|
InstallAt int64 `gorm:"column:install_at;type:bigint;not null;comment:首次安装时间" json:"install_at"`
|
|
|
RegisterAt int64 `gorm:"column:register_at;type:bigint;not null;comment:首次注册时间" json:"register_at"`
|
|
|
}
|
|
|
|
|
|
// TableName FissionUser's table name
|
|
|
func (*FissionUser) TableName() string {
|
|
|
return TableNameFissionUser
|
|
|
}
|