new_conv_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 TableNameNewConvLog = "new_conv_logs"
  6. // NewConvLog mapped from table <new_conv_logs>
  7. type NewConvLog 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;not null" 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 NewConvLog's table name
  17. func (*NewConvLog) TableName() string {
  18. return TableNameNewConvLog
  19. }