report_day_event_basic.gen.go 2.6 KB

1234567891011121314151617181920212223242526272829303132333435
  1. // Code generated by gorm.io/gen. DO NOT EDIT.
  2. // Code generated by gorm.io/gen. DO NOT EDIT.
  3. // Code generated by gorm.io/gen. DO NOT EDIT.
  4. package model
  5. const TableNameReportDayEventBasic = "report_day_event_basic"
  6. // ReportDayEventBasic mapped from table <report_day_event_basic>
  7. type ReportDayEventBasic struct {
  8. ID int64 `gorm:"column:id;type:bigint(20) unsigned;primaryKey;autoIncrement:true" json:"id"`
  9. Date string `gorm:"column:date;type:date;not null;uniqueIndex:date,priority:1" json:"date"`
  10. ChannelID string `gorm:"column:channel_id;type:varchar(128);uniqueIndex:date,priority:2;default:0" json:"channel_id"` // 渠道ID
  11. 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
  12. ConditionID int64 `gorm:"column:condition_id;type:bigint(20) unsigned;not null;uniqueIndex:date,priority:4" json:"condition_id"` // 条件编号
  13. Name string `gorm:"column:name;type:varchar(64);not null" json:"name"` // 条件名称
  14. Count_ int64 `gorm:"column:count;type:bigint(20) unsigned;not null" json:"count"` // 新增用户的平均时长
  15. Active1Day int64 `gorm:"column:active_1_day;type:bigint(20) unsigned;not null" json:"active_1_day"`
  16. Active2Day int64 `gorm:"column:active_2_day;type:bigint(20) unsigned;not null" json:"active_2_day"`
  17. Active3Day int64 `gorm:"column:active_3_day;type:bigint(20) unsigned;not null" json:"active_3_day"`
  18. Active4Day int64 `gorm:"column:active_4_day;type:bigint(20) unsigned;not null" json:"active_4_day"`
  19. Active5Day int64 `gorm:"column:active_5_day;type:bigint(20) unsigned;not null" json:"active_5_day"`
  20. Active6Day int64 `gorm:"column:active_6_day;type:bigint(20) unsigned;not null" json:"active_6_day"`
  21. Active7Day int64 `gorm:"column:active_7_day;type:bigint(20) unsigned;not null" json:"active_7_day"`
  22. Active14Day int64 `gorm:"column:active_14_day;type:bigint(20) unsigned;not null" json:"active_14_day"`
  23. Active30Day int64 `gorm:"column:active_30_day;type:bigint(20) unsigned;not null" json:"active_30_day"`
  24. CreatedAt int32 `gorm:"column:created_at;type:int(10) unsigned;not null" json:"created_at"`
  25. UpdatedAt int32 `gorm:"column:updated_at;type:int(10) unsigned;not null" json:"updated_at"`
  26. Flag int32 `gorm:"column:flag;type:int(11)" json:"flag"`
  27. }
  28. // TableName ReportDayEventBasic's table name
  29. func (*ReportDayEventBasic) TableName() string {
  30. return TableNameReportDayEventBasic
  31. }