promotion_upgrade_level.go 1.6 KB

12345678910111213141516171819202122232425262728
  1. package app
  2. // 引入关联包
  3. import (
  4. "github.com/shopspring/decimal"
  5. )
  6. type PromotionUpgradeLevel struct {
  7. Id int64 `json:"id" gorm:"column:id;type:bigint;comment:id;primarykey;NOT NULL"`
  8. CreatedAt int64 `json:"createdAt" gorm:"column:created_at;type:bigint;comment:创建时间"`
  9. UpdatedAt int64 `json:"updatedAt" gorm:"column:updated_at;type:bigint;comment:更新时间"`
  10. UserId int64 `json:"userId" gorm:"column:user_id;type:bigint;comment:用户ID;index"`
  11. Uid string `json:"uid" gorm:"column:uid;type:varchar(64);comment:交易所ID;index;unique:idx_user_uid_merchant_id"`
  12. RealAcLevel int8 `json:"realAcLevel" gorm:"column:real_ac_level;type:tinyint;comment:奖励业绩等级;index"`
  13. Quantity decimal.Decimal `json:"quantity" gorm:"column:quantity;type:decimal(25,8);comment:本次领取奖励数量"`
  14. Price decimal.Decimal `json:"price" gorm:"column:price;type:decimal(25,8);comment:单价"`
  15. UsdAmount decimal.Decimal `json:"usdAmount" gorm:"column:usd_amount;type:decimal(25,8);comment:本次领取奖励USD价值"`
  16. CumClaimQuantity decimal.Decimal `json:"cumClaimQuantity" gorm:"column:cum_claim_quantity;type:decimal(25,8);comment:累计领取数量"`
  17. CumClaimUsdAmount decimal.Decimal `json:"cumClaimUsdAmount" gorm:"column:cum_claim_usd_amount;type:decimal(25,8);comment:累计领取USD价值"`
  18. }
  19. func (*PromotionUpgradeLevel) TableName() string {
  20. return "promotion_upgrade_level"
  21. }
  22. func NewPromotionUpgradeLevel() *PromotionUpgradeLevel {
  23. return &PromotionUpgradeLevel{}
  24. }