orders_reg_stat.gen.go 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. import (
  6. "time"
  7. )
  8. const TableNameOrdersRegStat = "orders_reg_stat"
  9. // OrdersRegStat mapped from table <orders_reg_stat>
  10. type OrdersRegStat struct {
  11. ID int64 `gorm:"column:id;type:bigint(20);primaryKey;autoIncrement:true" json:"id"`
  12. Date string `gorm:"column:date;type:date;not null;index:date,priority:1" json:"date"` // 订单日期
  13. C1 int64 `gorm:"column:c1;type:bigint(20)" json:"c1"` // 当天付费人数
  14. M1 float64 `gorm:"column:m1;type:decimal(10,2);default:0.00" json:"m1"` // 当天付费金额
  15. C2 int64 `gorm:"column:c2;type:bigint(20)" json:"c2"` // 次日付费人数
  16. M2 float64 `gorm:"column:m2;type:decimal(10,2);default:0.00" json:"m2"` // 次日付费金额
  17. C3 int64 `gorm:"column:c3;type:bigint(20)" json:"c3"` // 3日付费人数
  18. M3 float64 `gorm:"column:m3;type:decimal(10,2);default:0.00" json:"m3"` // 3日付费金额
  19. C4 int64 `gorm:"column:c4;type:bigint(20)" json:"c4"` // 4日付费人数
  20. M4 float64 `gorm:"column:m4;type:decimal(10,2);default:0.00" json:"m4"` // 4日付费金额
  21. C5 int64 `gorm:"column:c5;type:bigint(20)" json:"c5"` // 5日付费人数
  22. M5 float64 `gorm:"column:m5;type:decimal(10,2);default:0.00" json:"m5"` // 5日付费金额
  23. C6 int64 `gorm:"column:c6;type:bigint(20)" json:"c6"` // 6日付费人数
  24. M6 float64 `gorm:"column:m6;type:decimal(10,2);default:0.00" json:"m6"` // 6日付费金额
  25. C7 int64 `gorm:"column:c7;type:bigint(20)" json:"c7"` // 7日付费人数
  26. M7 float64 `gorm:"column:m7;type:decimal(10,2);default:0.00" json:"m7"` // 7日付费金额
  27. U7 int64 `gorm:"column:u7;type:bigint(20)" json:"u7"` // 7日去重付费人数
  28. CreatedAt time.Time `gorm:"column:created_at;type:datetime;not null;index:created_at,priority:1" json:"created_at"` // 创建时间
  29. ChannelID string `gorm:"column:channel_id;type:varchar(128);default:0" json:"channel_id"` // 渠道ID
  30. ServerID int32 `gorm:"column:server_id;type:int(11);not null;index:server_id,priority:1;default:1" json:"server_id"` // 服务器ID
  31. }
  32. // TableName OrdersRegStat's table name
  33. func (*OrdersRegStat) TableName() string {
  34. return TableNameOrdersRegStat
  35. }