treasure_chest_log.gen.go 1.5 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 TableNameTreasureChestLog = "treasure_chest_log"
  6. // TreasureChestLog mapped from table <treasure_chest_log>
  7. type TreasureChestLog 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);not null" json:"user_id"` // 用户ID
  10. ServerID int32 `gorm:"column:server_id;type:int(11);not null;default:1" json:"server_id"` // 服务器ID
  11. EventID int32 `gorm:"column:event_id;type:int(11)" json:"event_id"` // 事件ID
  12. Type int32 `gorm:"column:type;type:int(11)" json:"type"` // 宝箱类型1 白银 2 黄金
  13. ItemID int32 `gorm:"column:item_id;type:int(11)" json:"item_id"` // 宝箱ID
  14. OpenCount int64 `gorm:"column:open_count;type:bigint(20);not null" json:"open_count"` // 开启宝箱数量
  15. Date string `gorm:"column:date;type:date;not null" 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 TreasureChestLog's table name
  20. func (*TreasureChestLog) TableName() string {
  21. return TableNameTreasureChestLog
  22. }