admin_ban_user_log.gen.go 1.6 KB

123456789101112131415161718192021222324
  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 TableNameAdminBanUserLog = "admin_ban_user_log"
  6. // AdminBanUserLog mapped from table <admin_ban_user_log>
  7. type AdminBanUserLog struct {
  8. ID int64 `gorm:"column:id;primaryKey;autoIncrement:true;comment:自增id" json:"id"` // 自增id
  9. AdminID int32 `gorm:"column:admin_id;not null;comment:管理员id" json:"admin_id"` // 管理员id
  10. IP string `gorm:"column:ip;not null;comment:操作人员ip" json:"ip"` // 操作人员ip
  11. PlayerID int64 `gorm:"column:player_id;not null;uniqueIndex:user_type,priority:1;comment:玩家id" json:"player_id"` // 玩家id
  12. Type int32 `gorm:"column:type;not null;uniqueIndex:user_type,priority:2;comment:禁用类型 1 全服,2当前服,3 支付,4 聊天" json:"type"` // 禁用类型 1 全服,2当前服,3 支付,4 聊天
  13. Reason string `gorm:"column:reason;comment:原因" json:"reason"` // 原因
  14. CreateAt int32 `gorm:"column:create_at;not null;comment:创建时间" json:"create_at"` // 创建时间
  15. UpdateAt int32 `gorm:"column:update_at;not null;comment:修改时间" json:"update_at"` // 修改时间
  16. }
  17. // TableName AdminBanUserLog's table name
  18. func (*AdminBanUserLog) TableName() string {
  19. return TableNameAdminBanUserLog
  20. }