duel_logs.gen.go 1.7 KB

1234567891011121314151617181920212223242526
  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 TableNameDuelLog = "duel_logs"
  6. // DuelLog mapped from table <duel_logs>
  7. type DuelLog 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" 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. EventID int32 `gorm:"column:event_id;type:int(11);index:event_id,priority:1" json:"event_id"` // 事件ID
  12. Cost int32 `gorm:"column:cost;type:int(11) unsigned" json:"cost"` // 花费类型【0:免费 1:战帖 ,2复仇】
  13. BattleID string `gorm:"column:battle_id;type:varchar(255)" json:"battle_id"` // 对局id,大于0是复仇类型
  14. CostType int32 `gorm:"column:cost_type;type:int(11)" json:"cost_type"` // 获取类型【1:看广告 2:钻石 】
  15. Date string `gorm:"column:date;type:date;not null;index:date,priority:1" json:"date"` // 触发日期 2005-01-02
  16. EventAt int32 `gorm:"column:event_at;type:int(11)" json:"event_at"` // 触发时间戳
  17. EventAtNs int64 `gorm:"column:event_at_ns;type:bigint(20)" json:"event_at_ns"` // 发生时间ns
  18. }
  19. // TableName DuelLog's table name
  20. func (*DuelLog) TableName() string {
  21. return TableNameDuelLog
  22. }