tables.go 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. State int //身份 0 1正式 2 社区
  18. CreateTime string
  19. Hash string
  20. }
  21. // TeamCultivate float64 `xorm:"Decimal"`
  22. // CommunityGift float64 `xorm:"Decimal"`
  23. // CommunityNode float64 `xorm:"Decimal"`
  24. type Performance struct {
  25. Addr string `xorm:"pk"` //主键
  26. TotalPerformance float64 `xorm:"Decimal"`
  27. PerformanceLevel int
  28. PerformanceRewards float64 `xorm:"Decimal"`
  29. Recorded int
  30. MarketNum int
  31. MarketLevel int
  32. MarketRewards float64 `xorm:"Decimal"`
  33. CommunityGift float64 `xorm:"Decimal"`
  34. CommunityNode float64 `xorm:"Decimal"`
  35. }
  36. type BlockInfo struct {
  37. Id int64 //主键
  38. BlockNumber int64
  39. Hash string
  40. }
  41. type RewardsPool struct {
  42. Id int64 //主键
  43. TeamPerformance float64 `xorm:"Decimal"`
  44. TeamCultivate float64 `xorm:"Decimal"`
  45. TotalPool float64 `xorm:"Decimal"`
  46. }
  47. type ClaimedTxs struct {
  48. Id int64 //自增
  49. Addr string
  50. Amount float64 `xorm:"Decimal"`
  51. BlockHeight int64
  52. Hash string //主键
  53. Signature string
  54. CreateTime string
  55. State int
  56. Droped int
  57. }