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 TableNameExpeditionLog = "expedition_logs"
- // ExpeditionLog mapped from table <expedition_logs>
- type ExpeditionLog struct {
- ID int64 `gorm:"column:id;type:bigint(20) unsigned;primaryKey;autoIncrement:true" json:"id"`
- UserID int64 `gorm:"column:user_id;type:bigint(20) unsigned;not null" json:"user_id"` // 用户id
- ServerID int32 `gorm:"column:server_id;type:int(11);not null;index:server_id,priority:1;default:1" json:"server_id"` // 服务器ID
- EventID int32 `gorm:"column:event_id;type:int(11);index:event_id,priority:1" json:"event_id"` // 事件ID
- Floor int32 `gorm:"column:floor;type:int(11) unsigned" json:"floor"` // 关卡ID
- Goods string `gorm:"column:goods;type:text" json:"goods"` // {id,count}—{物品id,物品数量}
- CostType int32 `gorm:"column:cost_type;type:int(11)" json:"cost_type"` // 1看广告 2 钻石 3人民币
- Date string `gorm:"column:date;type:date;not null;index:date,priority:1" 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 ExpeditionLog's table name
- func (*ExpeditionLog) TableName() string {
- return TableNameExpeditionLog
- }
|