report_day_adv_basic.gen.go 2.1 KB

12345678910111213141516171819202122232425262728293031
  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 TableNameReportDayAdvBasic = "report_day_adv_basic"
  6. // ReportDayAdvBasic mapped from table <report_day_adv_basic>
  7. type ReportDayAdvBasic struct {
  8. ID int64 `gorm:"column:id;type:bigint(20) unsigned;primaryKey;autoIncrement:true" json:"id"`
  9. Date string `gorm:"column:date;type:date;not null;uniqueIndex:date,priority:1;index:date_2,priority:1" json:"date"`
  10. PositionID int64 `gorm:"column:position_id;type:bigint(20) unsigned;not null;uniqueIndex:date,priority:2;index:date_2,priority:2" json:"position_id"` // 条件编号
  11. ChannelID string `gorm:"column:channel_id;type:varchar(128);uniqueIndex:date,priority:3;default:0" json:"channel_id"` // 渠道ID
  12. ServerID int32 `gorm:"column:server_id;type:int(11);not null;uniqueIndex:date,priority:4;index:server_id,priority:1;default:1" json:"server_id"` // 服务器ID
  13. Flag int32 `gorm:"column:flag;type:int(11);uniqueIndex:date,priority:5" json:"flag"`
  14. Name string `gorm:"column:name;type:varchar(64);not null" json:"name"` // 条件名称
  15. ShowTimes int64 `gorm:"column:show_times;type:bigint(20) unsigned;not null" json:"show_times"`
  16. ClickTimes int64 `gorm:"column:click_times;type:bigint(20) unsigned;not null" json:"click_times"`
  17. RewardTimes int64 `gorm:"column:reward_times;type:bigint(20) unsigned;not null" json:"reward_times"`
  18. ShowUsers int64 `gorm:"column:show_users;type:bigint(20) unsigned;not null" json:"show_users"`
  19. ClickUsers int64 `gorm:"column:click_users;type:bigint(20) unsigned;not null" json:"click_users"`
  20. RewardUsers int64 `gorm:"column:reward_users;type:bigint(20) unsigned;not null" json:"reward_users"`
  21. CreatedAt int64 `gorm:"column:created_at;type:bigint(20) unsigned;not null" json:"created_at"`
  22. UpdatedAt int64 `gorm:"column:updated_at;type:bigint(20) unsigned;not null" json:"updated_at"`
  23. }
  24. // TableName ReportDayAdvBasic's table name
  25. func (*ReportDayAdvBasic) TableName() string {
  26. return TableNameReportDayAdvBasic
  27. }