online_nums_logs.gen.go 825 B

1234567891011121314151617181920
  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 TableNameOnlineNumsLog = "online_nums_logs"
  6. // OnlineNumsLog mapped from table <online_nums_logs>
  7. type OnlineNumsLog struct {
  8. ID int64 `gorm:"column:id;type:bigint(20) unsigned;primaryKey;autoIncrement:true" json:"id"`
  9. Stamp int32 `gorm:"column:stamp;type:int(11) unsigned;not null;index:stamp,priority:1" json:"stamp"`
  10. Nums int32 `gorm:"column:nums;type:int(11) unsigned;not null" json:"nums"` // 在线人数
  11. ServerID int32 `gorm:"column:server_id;type:int(11) unsigned;not null" json:"server_id"` // 服务器id
  12. }
  13. // TableName OnlineNumsLog's table name
  14. func (*OnlineNumsLog) TableName() string {
  15. return TableNameOnlineNumsLog
  16. }