roles_logs.gen.go 974 B

123456789101112131415161718192021
  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 TableNameRolesLog = "roles_logs"
  6. // RolesLog mapped from table <roles_logs>
  7. type RolesLog struct {
  8. ID int32 `gorm:"column:id;type:int(11);primaryKey;autoIncrement:true" json:"id"`
  9. Date string `gorm:"column:date;type:date;not null;index:date,priority:1" json:"date"` // 统计日期
  10. ChannelID string `gorm:"column:channel_id;type:varchar(128);index:date,priority:2;default:0" json:"channel_id"` // 渠道ID
  11. ServerID int32 `gorm:"column:server_id;type:int(11);not null;default:1" json:"server_id"` // 服务器ID
  12. Collect string `gorm:"column:collect;type:text;not null" json:"collect"` // 统计等级集合
  13. }
  14. // TableName RolesLog's table name
  15. func (*RolesLog) TableName() string {
  16. return TableNameRolesLog
  17. }