// 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 TableNameReportDayEventBasic = "report_day_event_basic"

// ReportDayEventBasic mapped from table <report_day_event_basic>
type ReportDayEventBasic struct {
	ID          int64  `gorm:"column:id;type:bigint(20) unsigned;primaryKey;autoIncrement:true" json:"id"`
	Date        string `gorm:"column:date;type:date;not null;uniqueIndex:date,priority:1" json:"date"`
	ChannelID   string `gorm:"column:channel_id;type:varchar(128);uniqueIndex:date,priority:2;default:0" json:"channel_id"`                              // 渠道ID
	ServerID    int32  `gorm:"column:server_id;type:int(11);not null;index:server_id,priority:1;uniqueIndex:date,priority:3;default:1" json:"server_id"` // 服务器ID
	ConditionID int64  `gorm:"column:condition_id;type:bigint(20) unsigned;not null;uniqueIndex:date,priority:4" json:"condition_id"`                    // 条件编号
	Name        string `gorm:"column:name;type:varchar(64);not null" json:"name"`                                                                        // 条件名称
	Count_      int64  `gorm:"column:count;type:bigint(20) unsigned;not null" json:"count"`                                                              // 新增用户的平均时长
	Active1Day  int64  `gorm:"column:active_1_day;type:bigint(20) unsigned;not null" json:"active_1_day"`
	Active2Day  int64  `gorm:"column:active_2_day;type:bigint(20) unsigned;not null" json:"active_2_day"`
	Active3Day  int64  `gorm:"column:active_3_day;type:bigint(20) unsigned;not null" json:"active_3_day"`
	Active4Day  int64  `gorm:"column:active_4_day;type:bigint(20) unsigned;not null" json:"active_4_day"`
	Active5Day  int64  `gorm:"column:active_5_day;type:bigint(20) unsigned;not null" json:"active_5_day"`
	Active6Day  int64  `gorm:"column:active_6_day;type:bigint(20) unsigned;not null" json:"active_6_day"`
	Active7Day  int64  `gorm:"column:active_7_day;type:bigint(20) unsigned;not null" json:"active_7_day"`
	Active14Day int64  `gorm:"column:active_14_day;type:bigint(20) unsigned;not null" json:"active_14_day"`
	Active30Day int64  `gorm:"column:active_30_day;type:bigint(20) unsigned;not null" json:"active_30_day"`
	CreatedAt   int32  `gorm:"column:created_at;type:int(10) unsigned;not null" json:"created_at"`
	UpdatedAt   int32  `gorm:"column:updated_at;type:int(10) unsigned;not null" json:"updated_at"`
	Flag        int32  `gorm:"column:flag;type:int(11)" json:"flag"`
}

// TableName ReportDayEventBasic's table name
func (*ReportDayEventBasic) TableName() string {
	return TableNameReportDayEventBasic
}
