first_adv_logs.gen.go 1.1 KB

1234567891011121314151617181920212223
  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 TableNameFirstAdvLog = "first_adv_logs"
  6. // FirstAdvLog mapped from table <first_adv_logs>
  7. type FirstAdvLog struct {
  8. ID int64 `gorm:"column:id;type:bigint(20) unsigned;primaryKey;autoIncrement:true" json:"id"`
  9. Userid int64 `gorm:"column:userid;type:bigint(20);not null" json:"userid"` // 用户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);not null" json:"event_id"` // 事件ID
  12. Date string `gorm:"column:date;type:date" json:"date"`
  13. EventAt int32 `gorm:"column:event_at;type:int(11);not null" json:"event_at"` // 触发时间戳
  14. EventAtNs int64 `gorm:"column:event_at_ns;type:bigint(20);not null" json:"event_at_ns"` // 发生时间ns
  15. }
  16. // TableName FirstAdvLog's table name
  17. func (*FirstAdvLog) TableName() string {
  18. return TableNameFirstAdvLog
  19. }