seven_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 TableNameSevenLog = "seven_logs"
  6. // SevenLog mapped from table <seven_logs>
  7. type SevenLog 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;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. UnlockDay int32 `gorm:"column:unlock_day;type:int(11);not null" json:"unlock_day"` // 当天解锁天数
  13. TaskID int32 `gorm:"column:task_id;type:int(11);index:task_id,priority:1" json:"task_id"` // 任务/奖励ID
  14. UserCreatedAt int32 `gorm:"column:user_created_at;type:int(11) unsigned;not null" json:"user_created_at"` // 玩家注册时间
  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 SevenLog's table name
  20. func (*SevenLog) TableName() string {
  21. return TableNameSevenLog
  22. }