report_level_output.gen.go 1.2 KB

12345678910111213141516171819202122
  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 TableNameReportLevelOutput = "report_level_output"
  6. // ReportLevelOutput mapped from table <report_level_output>
  7. type ReportLevelOutput struct {
  8. ID int64 `gorm:"column:id;type:bigint(20);primaryKey;autoIncrement:true" json:"id"` // ID
  9. Level int64 `gorm:"column:level;type:bigint(20);not null;uniqueIndex:level,priority:1;uniqueIndex:level_2,priority:1" json:"level"`
  10. ChannelID string `gorm:"column:channel_id;type:varchar(128);uniqueIndex:level_2,priority:2;default:0" json:"channel_id"` // 渠道ID
  11. ServerID int32 `gorm:"column:server_id;type:int(11);not null;index:server_id,priority:1;default:1" json:"server_id"` // 服务器ID
  12. Coin int64 `gorm:"column:coin;type:bigint(20)" json:"coin"` // 金币
  13. Diamond int64 `gorm:"column:diamond;type:bigint(20);not null" json:"diamond"` // 钻石
  14. }
  15. // TableName ReportLevelOutput's table name
  16. func (*ReportLevelOutput) TableName() string {
  17. return TableNameReportLevelOutput
  18. }