meetings.hrl 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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(meeting, {
  7. name, % { tournament name }
  8. id,
  9. game_type,
  10. description,
  11. creator,
  12. created, % time
  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. points, % [{money,Point},{bonus,Points}]
  35. quota }).