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.6 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 TableNameFissionCampaign = "fission_campaign"
// FissionCampaign mapped from table <fission_campaign>
type FissionCampaign 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"`
HashID string `gorm:"column:hash_id;type:varchar(25);not null;index:idx_link_hash_id,priority:1;comment:活动对外hash_id" json:"hash_id"`
FissionID int64 `gorm:"column:fission_id;type:bigint;not null;index:idx_project_id_fission_id,priority:2;comment:玩法ID(fission表主键)" json:"fission_id"`
ProjectID int64 `gorm:"column:project_id;type:bigint;not null;index:idx_project_id_fission_id,priority:1;comment:项目ID(clintproject表主键)" json:"project_id"`
CreatorID int64 `gorm:"column:creator_id;type:bigint;not null;comment:创建用户ID(user表主键)" json:"creator_id"`
LanguagePkgID int64 `gorm:"column:language_pkg_id;type:bigint;not null;comment:语言包ID(languagepackage表主键)" json:"language_pkg_id"`
TemplateID int64 `gorm:"column:template_id;type:bigint;not null;comment:活动模板ID" json:"template_id"`
Title string `gorm:"column:title;type:varchar(35);not null;comment:活动标题" json:"title"`
Status int8 `gorm:"column:status;type:tinyint;not null;comment:发布状态(1-待发布,2-已发布,3-已下线)" json:"status"`
StartTime int64 `gorm:"column:start_time;type:bigint;not null;index:idx_start_time,priority:1;comment:开始时间" json:"start_time"`
EndTime int64 `gorm:"column:end_time;type:bigint;not null;index:idx_end_time,priority:1;comment:结束时间" json:"end_time"`
CoverURL string `gorm:"column:cover_url;type:varchar(128);not null;comment:活动封面图" json:"cover_url"`
TOffset int32 `gorm:"column:t_offset;type:int;not null;comment:时间偏移量" json:"t_offset"`
TStart int64 `gorm:"column:t_start;type:bigint;not null;comment:提交的开始时间(+8时区算出来的时间戳)" json:"t_start"`
TEnd int64 `gorm:"column:t_end;type:bigint;not null;comment:提交的结束时间(+8时区算出来的时间戳)" json:"t_end"`
LangTypes string `gorm:"column:lang_types;type:varchar(255);not null;comment:支持的语种标识" json:"lang_types"`
Target int8 `gorm:"column:target;type:tinyint;not null;comment:活动目标(1-app下载/注册;2-提升关键指标转换率;3-app活跃/留存;4-w2a互动广告;5-子活动)" json:"target"`
ReportType int8 `gorm:"column:report_type;type:tinyint;not null;comment:报表类型(1-旧版报表,2-广告报表,3-新版活动内报表)" json:"report_type"`
PreToRun int64 `gorm:"column:pre_to_run;type:bigint;not null;index:idx_pre_to_run,priority:1;comment:预发布转正式时间" json:"pre_to_run"`
Pid int64 `gorm:"column:pid;type:bigint;not null;index:idx_pid,priority:1;comment:上级活动id" json:"pid"`
ChildType int8 `gorm:"column:child_type;type:tinyint;not null;comment:子活动类型" json:"child_type"`
}
// TableName FissionCampaign's table name
func (*FissionCampaign) TableName() string {
return TableNameFissionCampaign
}