tournaments.hrl 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. -record(team,
  2. {name, % { team name for now will bu just first player username }
  3. id,
  4. play_record, % { linked list history of played users under that ticket }
  5. type }).
  6. -record(tournament,
  7. {name, % { tournament name }
  8. id,
  9. game_type,
  10. description,
  11. creator,
  12. created,
  13. start_date,
  14. start_time,
  15. end_date,
  16. status, % { activated, ongoing, finished, canceled }
  17. quota,
  18. tours,
  19. awards,
  20. winners :: list(), % [{UserId, Position, GiftId}]
  21. waiting_queue, % { play_record, added here when user wants to join tournament }
  22. avatar,
  23. owner,
  24. players_count,
  25. speed,
  26. type,
  27. game_mode }). % { eliminatin, pointing, etc }
  28. -record(play_record, % { tournament_player, game_record, tournament_info, choose your name :) }
  29. {who, % { user }
  30. tournament, % { tournament in which user played }
  31. team, % { team under which user player tournament }
  32. game_id, % { game id that user played under that team }
  33. realname,
  34. game_points,
  35. kakush,
  36. kakush_currency,
  37. quota,
  38. other }).