report_day_basic.gen.go 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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 TableNameReportDayBasic = "report_day_basic"
  6. // ReportDayBasic mapped from table <report_day_basic>
  7. type ReportDayBasic 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);index:channel_id,priority:1;uniqueIndex:date,priority:2;default:0" json:"channel_id"` // 渠道ID
  11. Flag int32 `gorm:"column:flag;type:int(11);uniqueIndex:date,priority:4" json:"flag"`
  12. 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
  13. NewCount int64 `gorm:"column:new_count;type:bigint(20) unsigned;not null" json:"new_count"`
  14. ValidCount int64 `gorm:"column:valid_count;type:bigint(20) unsigned" json:"valid_count"` // 有效用户
  15. ActiveCount int64 `gorm:"column:active_count;type:bigint(20) unsigned;not null" json:"active_count"`
  16. OldCount int64 `gorm:"column:old_count;type:bigint(20) unsigned;not null" json:"old_count"` // 老玩家数量
  17. NewDuration int64 `gorm:"column:new_duration;type:bigint(20) unsigned;not null" json:"new_duration"` // 新增用户的平均时长
  18. ValidDuration int64 `gorm:"column:valid_duration;type:bigint(20) unsigned" json:"valid_duration"`
  19. ActiveDuration int64 `gorm:"column:active_duration;type:bigint(20) unsigned;not null" json:"active_duration"` // 活跃用户的平均时长
  20. Active1Day int64 `gorm:"column:active_1_day;type:bigint(20) unsigned;not null" json:"active_1_day"`
  21. Active2Day int64 `gorm:"column:active_2_day;type:bigint(20) unsigned;not null" json:"active_2_day"`
  22. Active3Day int64 `gorm:"column:active_3_day;type:bigint(20) unsigned;not null" json:"active_3_day"`
  23. Active4Day int64 `gorm:"column:active_4_day;type:bigint(20) unsigned;not null" json:"active_4_day"`
  24. Active5Day int64 `gorm:"column:active_5_day;type:bigint(20) unsigned;not null" json:"active_5_day"`
  25. Active6Day int64 `gorm:"column:active_6_day;type:bigint(20) unsigned;not null" json:"active_6_day"`
  26. Active7Day int64 `gorm:"column:active_7_day;type:bigint(20) unsigned;not null" json:"active_7_day"`
  27. Active14Day int64 `gorm:"column:active_14_day;type:bigint(20) unsigned;not null" json:"active_14_day"`
  28. Active30Day int64 `gorm:"column:active_30_day;type:bigint(20) unsigned;not null" json:"active_30_day"`
  29. C1 int64 `gorm:"column:c1;type:bigint(20)" json:"c1"`
  30. C2 int64 `gorm:"column:c2;type:bigint(20)" json:"c2"`
  31. C3 int64 `gorm:"column:c3;type:bigint(20)" json:"c3"`
  32. C4 int64 `gorm:"column:c4;type:bigint(20)" json:"c4"`
  33. C5 int64 `gorm:"column:c5;type:bigint(20)" json:"c5"`
  34. C6 int64 `gorm:"column:c6;type:bigint(20)" json:"c6"`
  35. C7 int64 `gorm:"column:c7;type:bigint(20)" json:"c7"`
  36. C14 int64 `gorm:"column:c14;type:bigint(20)" json:"c14"`
  37. C30 int64 `gorm:"column:c30;type:bigint(20)" json:"c30"`
  38. CreatedAt int32 `gorm:"column:created_at;type:int(10) unsigned;not null" json:"created_at"`
  39. UpdatedAt int32 `gorm:"column:updated_at;type:int(10) unsigned;not null" json:"updated_at"`
  40. }
  41. // TableName ReportDayBasic's table name
  42. func (*ReportDayBasic) TableName() string {
  43. return TableNameReportDayBasic
  44. }