battle_log.gen.go 1.4 KB

1234567891011121314151617181920212223242526272829303132
  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. import (
  6. "time"
  7. )
  8. const TableNameBattleLog = "battle_log"
  9. // BattleLog mapped from table <battle_log>
  10. type BattleLog struct {
  11. ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
  12. ChapterID int32 `gorm:"column:chapter_id" json:"chapter_id"`
  13. Wave int32 `gorm:"column:wave" json:"wave"`
  14. PlayerID int64 `gorm:"column:player_id" json:"player_id"`
  15. BattleTime int32 `gorm:"column:battle_time" json:"battle_time"`
  16. BattleResult int32 `gorm:"column:battle_result;comment:战斗结果 0未通关 1通关" json:"battle_result"` // 战斗结果 0未通关 1通关
  17. IsNew int32 `gorm:"column:is_new" json:"is_new"`
  18. EventTime time.Time `gorm:"column:event_time" json:"event_time"`
  19. EventDay time.Time `gorm:"column:event_day" json:"event_day"`
  20. Channel string `gorm:"column:channel" json:"channel"`
  21. IsRevive int32 `gorm:"column:is_revive;comment:是否使用复活 0未使用 1使用" json:"is_revive"` // 是否使用复活 0未使用 1使用
  22. ReviveWave int32 `gorm:"column:revive_wave;comment:在那一波复活" json:"revive_wave"` // 在那一波复活
  23. }
  24. // TableName BattleLog's table name
  25. func (*BattleLog) TableName() string {
  26. return TableNameBattleLog
  27. }