tables.go 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. package models
  2. type UserInfo struct {
  3. Id int64 //自增
  4. Addr string `xorm:"pk"` //主键
  5. Direct string //我的上级
  6. DirectNumber int //直推总人数
  7. IndirectRewards float64 `xorm:"Decimal"` //间推奖励
  8. Indirect string //上上级
  9. IndirectNumber int //间推总人数
  10. DirectRewards float64 `xorm:"Decimal"` //直推奖励
  11. Superiors string //所有上级
  12. AvailableClaim float64 `xorm:"Decimal"` //可领取收益
  13. TotalClaimed float64 `xorm:"Decimal"` //总共已领取的收益
  14. AvailableReinput float64 `xorm:"Decimal"` //可用复投
  15. TotalReinputed float64 `xorm:"Decimal"` //总复投
  16. ParticipateAmount float64 `xorm:"Decimal"` //总参与
  17. BackNum int64 //本人后11-25领取个数
  18. BackUsers string //本人后11-25用户id
  19. State int //身份 0 普通 1 正式 2 社区
  20. CreateTime string
  21. Hash string
  22. }
  23. type Performance struct {
  24. Addr string `xorm:"pk"` //主键
  25. TotalPerformance float64 `xorm:"Decimal"` //团队总业绩
  26. PerformanceLevel int
  27. PerformanceRewards float64 `xorm:"Decimal"` //团队收益
  28. MarketNum int
  29. MarketLevel int
  30. MarketRewards float64 `xorm:"Decimal"` //市场收益
  31. CommunityGift float64 `xorm:"Decimal"` //团队赠送收益
  32. CommunityNode float64 `xorm:"Decimal"` //社区节点收益
  33. }
  34. type BlockInfo struct {
  35. Id int64 //主键
  36. BlockNumber int64
  37. Hash string
  38. }
  39. type RewardsPool struct {
  40. Id int64 //主键
  41. TeamPerformance float64 `xorm:"Decimal"`
  42. TeamCultivate float64 `xorm:"Decimal"`
  43. TotalPool float64 `xorm:"Decimal"`
  44. }
  45. type ClaimedTxs struct {
  46. Id int64 //自增
  47. Addr string
  48. Amount float64 `xorm:"Decimal"`
  49. BlockHeight int64
  50. Hash string `xorm:"pk"` //主键
  51. Signature string
  52. CreateTime string
  53. State int
  54. Droped int
  55. }