grandmaster_logs.gen.go 2.4 KB

123456789101112131415161718192021222324252627
  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 TableNameGrandmasterLog = "grandmaster_logs"
  6. // GrandmasterLog mapped from table <grandmaster_logs>
  7. type GrandmasterLog struct {
  8. ID int64 `gorm:"column:id;type:bigint(20) unsigned;primaryKey;autoIncrement:true" json:"id"`
  9. UserID int64 `gorm:"column:user_id;type:bigint(20) unsigned;not null;index:user_id,priority:1;index:user_id_2,priority:1" json:"user_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. ChannelID string `gorm:"column:channel_id;type:varchar(128);index:channel_id,priority:1;default:0" json:"channel_id"` // 渠道ID
  12. EventID int32 `gorm:"column:event_id;type:int(11) unsigned;not null;index:event_at_idex,priority:2;index:event_id,priority:1;index:create_event_id_at_idx,priority:1" json:"event_id"` // 埋点id
  13. MatchSeconds int64 `gorm:"column:match_seconds;type:bigint(20)" json:"match_seconds"` // 匹配时长
  14. DanScore int64 `gorm:"column:dan_score;type:bigint(20)" json:"dan_score"` // 段位积分
  15. BattleWaves int64 `gorm:"column:battle_waves;type:bigint(20)" json:"battle_waves"` // 战斗波数
  16. BattleSeconds int64 `gorm:"column:battle_seconds;type:bigint(20)" json:"battle_seconds"` // 战斗时长
  17. Date string `gorm:"column:date;type:date;index:date,priority:1" json:"date"`
  18. EventAt int32 `gorm:"column:event_at;type:int(11) unsigned;not null;index:event_at_idex,priority:1;index:user_id_2,priority:2;index:create_event_id_at_idx,priority:2" json:"event_at"` // 埋点事件触发的时间
  19. }
  20. // TableName GrandmasterLog's table name
  21. func (*GrandmasterLog) TableName() string {
  22. return TableNameGrandmasterLog
  23. }