tables.go 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. package models
  2. type UserInfo struct {
  3. Id int64 //自增
  4. Addr string //主键
  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 //主键
  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. }
  40. type RewardsPool struct {
  41. Id int64 //主键
  42. TeamPerformance float64 `xorm:"Decimal"`
  43. TeamCultivate float64 `xorm:"Decimal"`
  44. TotalPool float64 `xorm:"Decimal"`
  45. }
  46. type ClaimedTxs struct {
  47. Id int64 //自增
  48. Addr string
  49. Amount float64 `xorm:"Decimal"`
  50. BlockHeight int64
  51. Hash string //主键
  52. Signature string
  53. CreateTime string
  54. State int
  55. Droped int
  56. }