disconnect_logs.gen.go 2.0 KB

12345678910111213141516171819202122232425262728
  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 TableNameDisconnectLog = "disconnect_logs"
  6. // DisconnectLog mapped from table <disconnect_logs>
  7. type DisconnectLog 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);index:event_id,priority:1" json:"event_id"` // 事件ID
  12. UserCreatedAt int32 `gorm:"column:user_created_at;type:int(11) unsigned;not null" json:"user_created_at"` // 用户注册时间
  13. Scene string `gorm:"column:scene;type:varchar(255)" json:"scene"` // 场景值
  14. NetType int64 `gorm:"column:net_type;type:bigint(20)" json:"net_type"` // 网络类型
  15. SignalStrength int64 `gorm:"column:signal_strength;type:bigint(20);not null" json:"signal_strength"` // 信号强度
  16. Time int64 `gorm:"column:time;type:bigint(20)" json:"time"` // 重连耗时
  17. Date string `gorm:"column:date;type:date;not null;index:date,priority:1" json:"date"` // 触发日期 2005-01-02
  18. EventAt int32 `gorm:"column:event_at;type:int(11);not null" json:"event_at"` // 触发时间戳
  19. EventAtNs int64 `gorm:"column:event_at_ns;type:bigint(20);not null" json:"event_at_ns"` // 发生时间ns
  20. }
  21. // TableName DisconnectLog's table name
  22. func (*DisconnectLog) TableName() string {
  23. return TableNameDisconnectLog
  24. }