changed_statistics.gen.go 1.7 KB

12345678910111213141516171819202122232425
  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 TableNameChangedStatistic = "changed_statistics"
  6. // ChangedStatistic mapped from table <changed_statistics>
  7. type ChangedStatistic struct {
  8. ID int64 `gorm:"column:id;type:bigint(20);primaryKey;autoIncrement:true" json:"id"`
  9. ChannelID string `gorm:"column:channel_id;type:varchar(128);not null;uniqueIndex:channel_id,priority:1;default:0" json:"channel_id"` // 渠道ID
  10. ServerID int32 `gorm:"column:server_id;type:int(11);not null;index:server_id,priority:1;default:1" json:"server_id"` // 服务器ID
  11. Type int32 `gorm:"column:type;type:int(11);not null;uniqueIndex:channel_id,priority:2;index:type_2,priority:1" json:"type"` // 消费类型
  12. Source int32 `gorm:"column:source;type:int(11);not null;uniqueIndex:channel_id,priority:3" json:"source"` // 消费来源
  13. Amount int64 `gorm:"column:amount;type:bigint(20);not null" json:"amount"` // 消费金额
  14. Players string `gorm:"column:players;type:longtext;not null" json:"players"` // 消费玩家ID集合
  15. Counts int64 `gorm:"column:counts;type:bigint(20);not null" json:"counts"` // 消费次数
  16. Date string `gorm:"column:date;type:date;not null;uniqueIndex:channel_id,priority:4" json:"date"` // 日期
  17. }
  18. // TableName ChangedStatistic's table name
  19. func (*ChangedStatistic) TableName() string {
  20. return TableNameChangedStatistic
  21. }