tables.go 1.8 KB

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