tables.go 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. type Performance struct {
  22. Addr string `xorm:"pk"` //主键
  23. TotalPerformance float64 `xorm:"Decimal"` //团队总业绩
  24. PerformanceLevel int
  25. PerformanceRewards float64 `xorm:"Decimal"` //团队收益
  26. Recorded int
  27. MarketNum int
  28. MarketLevel int
  29. MarketRewards float64 `xorm:"Decimal"` //市场收益
  30. CommunityGift float64 `xorm:"Decimal"` //团队赠送收益
  31. CommunityNode float64 `xorm:"Decimal"` //社区节点收益
  32. }
  33. type BlockInfo struct {
  34. Id int64 //主键
  35. BlockNumber int64
  36. Hash string
  37. }
  38. type RewardsPool struct {
  39. Id int64 //主键
  40. TeamPerformance float64 `xorm:"Decimal"`
  41. TeamCultivate float64 `xorm:"Decimal"`
  42. TotalPool float64 `xorm:"Decimal"`
  43. }
  44. type ClaimedTxs struct {
  45. Id int64 //自增
  46. Addr string
  47. Amount float64 `xorm:"Decimal"`
  48. BlockHeight int64
  49. Hash string `xorm:"pk"` //主键
  50. Signature string
  51. CreateTime string
  52. State int
  53. Droped int
  54. }