player_ban_logs.gen.go 996 B

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 TableNamePlayerBanLog = "player_ban_logs"
  6. // PlayerBanLog mapped from table <player_ban_logs>
  7. type PlayerBanLog struct {
  8. ID int64 `gorm:"column:id;type:bigint(20) unsigned;primaryKey;autoIncrement:true" json:"id"`
  9. ServerID int32 `gorm:"column:server_id;type:int(11)" json:"server_id"`
  10. Playerid int64 `gorm:"column:playerid;type:bigint(20);not null;index:playerid,priority:1" json:"playerid"` // 用户ID
  11. AccID int64 `gorm:"column:acc_id;type:bigint(20);not null" json:"acc_id"`
  12. Ban int32 `gorm:"column:ban;type:int(11)" json:"ban"`
  13. Reason string `gorm:"column:reason;type:varchar(255)" json:"reason"` // 拉黑原因
  14. Time int32 `gorm:"column:time;type:int(11);not null" json:"time"`
  15. }
  16. // TableName PlayerBanLog's table name
  17. func (*PlayerBanLog) TableName() string {
  18. return TableNamePlayerBanLog
  19. }