1234567891011121314151617181920212223242526 |
- // Code generated by gorm.io/gen. DO NOT EDIT.
- // Code generated by gorm.io/gen. DO NOT EDIT.
- // Code generated by gorm.io/gen. DO NOT EDIT.
- package model
- const TableNameTreasureChestLog = "treasure_chest_log"
- // TreasureChestLog mapped from table <treasure_chest_log>
- type TreasureChestLog struct {
- ID int64 `gorm:"column:id;type:bigint(20) unsigned;primaryKey;autoIncrement:true" json:"id"`
- UserID int64 `gorm:"column:user_id;type:bigint(20);not null" json:"user_id"` // 用户ID
- ServerID int32 `gorm:"column:server_id;type:int(11);not null;default:1" json:"server_id"` // 服务器ID
- EventID int32 `gorm:"column:event_id;type:int(11)" json:"event_id"` // 事件ID
- Type int32 `gorm:"column:type;type:int(11)" json:"type"` // 宝箱类型1 白银 2 黄金
- ItemID int32 `gorm:"column:item_id;type:int(11)" json:"item_id"` // 宝箱ID
- OpenCount int64 `gorm:"column:open_count;type:bigint(20);not null" json:"open_count"` // 开启宝箱数量
- Date string `gorm:"column:date;type:date;not null" json:"date"` // 触发日期 2005-01-02
- EventAt int32 `gorm:"column:event_at;type:int(11)" json:"event_at"` // 触发时间戳
- EventAtNs int64 `gorm:"column:event_at_ns;type:bigint(20)" json:"event_at_ns"` // 发生时间ns
- }
- // TableName TreasureChestLog's table name
- func (*TreasureChestLog) TableName() string {
- return TableNameTreasureChestLog
- }
|