report_day_goods_basic.gen.go 2.1 KB

123456789101112131415161718192021222324252627282930
  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 TableNameReportDayGoodsBasic = "report_day_goods_basic"
  6. // ReportDayGoodsBasic mapped from table <report_day_goods_basic>
  7. type ReportDayGoodsBasic 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" json:"date"`
  10. PositionID int64 `gorm:"column:position_id;type:bigint(20) unsigned;not null;uniqueIndex:date,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. Name string `gorm:"column:name;type:varchar(64);not null" json:"name"` // 条件名称
  14. ShowTimes int64 `gorm:"column:show_times;type:bigint(20) unsigned;not null" json:"show_times"`
  15. ClickTimes int64 `gorm:"column:click_times;type:bigint(20) unsigned;not null" json:"click_times"`
  16. SuccessTimes int64 `gorm:"column:success_times;type:bigint(20) unsigned;not null" json:"success_times"`
  17. ShowUsers int64 `gorm:"column:show_users;type:bigint(20) unsigned;not null" json:"show_users"`
  18. ClickUsers int64 `gorm:"column:click_users;type:bigint(20) unsigned;not null" json:"click_users"`
  19. SuccessUsers int64 `gorm:"column:success_users;type:bigint(20) unsigned;not null" json:"success_users"`
  20. CreatedAt int32 `gorm:"column:created_at;type:int(10) unsigned;not null" json:"created_at"`
  21. UpdatedAt int32 `gorm:"column:updated_at;type:int(10) unsigned;not null" json:"updated_at"`
  22. }
  23. // TableName ReportDayGoodsBasic's table name
  24. func (*ReportDayGoodsBasic) TableName() string {
  25. return TableNameReportDayGoodsBasic
  26. }