old_user_info.go 6.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. package app
  2. // 引入关联包
  3. import (
  4. "github.com/shopspring/decimal"
  5. )
  6. type OldUserInfo 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. Uid string `json:"uid" gorm:"column:uid;type:varchar(64);comment:交易所ID;index;unique:idx_user_uid_merchant_id"`
  11. ParentUid string `json:"parentUid" gorm:"column:parent_uid;type:varchar(64);comment:上级交易所ID;index"`
  12. TdBalance decimal.Decimal `json:"tdBalance" gorm:"column:td_balance;type:decimal(25,8);comment:td余额"`
  13. UsdtBalance decimal.Decimal `json:"usdtBalance" gorm:"column:usdt_balance;type:decimal(25,8);comment:usdt余额"`
  14. ParentNodes decimal.Decimal `json:"parentNodes" gorm:"column:parent_nodes;type:decimal(25,8);comment:节点数量??"`
  15. ParentAmount decimal.Decimal `json:"parentAmount" gorm:"column:parent_amount;type:decimal(25,8);comment:节点总价值"`
  16. CumClaimLevel int64 `json:"cumClaimLevel" gorm:"column:cum_claim_level;type:bigint;comment:已领取等级"`
  17. CumClaimLevelUpgradeQuantity decimal.Decimal `json:"cumClaimLevelUpgradeQuantity" gorm:"column:cum_claim_level_upgrade_quantity;type:decimal(25,8);comment:累计领取等级升级数量"`
  18. CumClaimLevelUpgradeUsdAmount decimal.Decimal `json:"cumClaimLevelUpgradeUsdAmount" gorm:"column:cum_claim_level_upgrade_usd_amount;type:decimal(25,8);comment:累计领取等级升级USD价值"`
  19. StakeQuantity decimal.Decimal `json:"stakeQuantity" gorm:"column:stake_quantity;type:decimal(25,8);comment:当前质押数量"`
  20. StakeUsdAmount decimal.Decimal `json:"stakeUsdAmount" gorm:"column:stake_usd_amount;type:decimal(25,8);comment:当前质押USD价值"`
  21. StakeCollectionBalance decimal.Decimal `json:"stakeCollectionBalance" gorm:"column:stake_collection_balance;type:decimal(25,8);comment:可领取td静态奖励数量"`
  22. ImportStakeQuantity decimal.Decimal `json:"importStakeQuantity" gorm:"column:import_stake_quantity;type:decimal(25,8);comment:当前质押数量"`
  23. ImportStakeUsdAmount decimal.Decimal `json:"importStakeUsdAmount" gorm:"column:import_stake_usd_amount;type:decimal(25,8);comment:当前质押USD价值"`
  24. ImportStakeCollectionBalance decimal.Decimal `json:"importStakeCollectionBalance" gorm:"column:import_stake_collection_balance;type:decimal(25,8);comment:可领取td静态奖励数量"`
  25. ProfitBalance decimal.Decimal `json:"profitBalance" gorm:"column:profit_balance;type:decimal(25,8);comment:动静态可提取收益数量"`
  26. IsHandler bool `json:"isHandler" gorm:"column:is_handler;type:tinyint(1);comment:当前数据是否处理完成"`
  27. Enable bool `json:"enable" gorm:"column:enable;type:tinyint(1);comment:账户是否有效 1=有效 0=无效"`
  28. IsRobot bool `json:"isRobot" gorm:"column:is_robot;type:tinyint(1);comment:"`
  29. WithoutStakeRanking bool `json:"withoutStakeRanking" gorm:"column:without_stake_ranking;type:tinyint(1);comment:0 参与 1不参与个人排行"`
  30. WithoutFewRegionRanking bool `json:"withoutFewRegionRanking" gorm:"column:without_few_region_ranking;type:tinyint(1);comment:0 参与 1不参与小区业绩排行"`
  31. LockStakeProfit bool `json:"lockStakeProfit" gorm:"column:lock_stake_profit;type:tinyint(1);comment:0 正常 1锁定不产出收益"`
  32. IsNotStakeLimit bool `json:"isNotStakeLimit" gorm:"column:is_not_stake_limit;type:tinyint(1);comment:是否无质押限制"`
  33. IsNotCountStakeAc bool `json:"isNotCountStakeAc" gorm:"column:is_not_count_stake_ac;type:tinyint(1);comment:是否不计算全网业绩统计"`
  34. IsZero bool `json:"isZero" gorm:"column:is_zero;type:tinyint(1);comment:是否零号线"`
  35. LockWithdraw bool `json:"lockWithdraw" gorm:"column:lock_withdraw;type:tinyint(1);comment:锁定提现 0=未锁定 1=锁定"`
  36. SubsLockWithdraw bool `json:"subsLockWithdraw" gorm:"column:subs_lock_withdraw;type:tinyint(1);comment:锁定伞下提现 0=未锁定 1=锁定"`
  37. IsOld bool `json:"isOld" gorm:"column:is_old;type:tinyint(1);comment:是否老规则用户"`
  38. IsExemptionLargeAchievement int64 `json:"isExemptionLargeAchievement" gorm:"column:is_exemption_large_achievement;type:bigint;comment:是否免除大区业绩"`
  39. GiftPersonAchievement decimal.Decimal `json:"giftPersonAchievement" gorm:"column:gift_person_achievement;type:decimal(25,8);comment:赠送质押业绩"`
  40. InflatedFewTeamAchievement decimal.Decimal `json:"inflatedFewTeamAchievement" gorm:"column:inflated_few_team_achievement;type:decimal(25,8);comment:虚增小区业绩"`
  41. LockRedeem int8 `json:"lockRedeem" gorm:"column:lock_redeem;type:tinyint;comment:赎回锁定 0 正常 1 锁定"`
  42. UnCollection int8 `json:"unCollection" gorm:"column:un_collection;type:tinyint;comment:0 正常 1 自动领取静态收益"`
  43. PerformanceRobot int8 `json:"performanceRobot" gorm:"column:performance_robot;type:tinyint;comment:0 正常 1 自动领取静态收益"`
  44. LevelRobot int8 `json:"levelRobot" gorm:"column:level_robot;type:tinyint;comment:0 正常 1 自动领取静态收益"`
  45. InternalAccount int8 `json:"internalAccount" gorm:"column:internal_account;type:tinyint;comment:0 正常 1 自动领取静态收益"`
  46. FireRobot int8 `json:"fireRobot" gorm:"column:fire_robot;type:tinyint;comment:0 正常 1 自动领取静态收益"`
  47. IsHandlerOrder bool `json:"isHandlerOrder" gorm:"column:is_handler_order;type:tinyint(1);comment:订单数据是否处理完成"`
  48. IsHandlerExtraOrder bool `json:"isHandlerExtraOrder" gorm:"column:is_handler_extra_order;type:tinyint(1);comment:extra订单数据是否处理完成"`
  49. }
  50. func (*OldUserInfo) TableName() string {
  51. return "old_user_info"
  52. }
  53. func NewOldUserInfo() *OldUserInfo {
  54. return &OldUserInfo{}
  55. }