We need to implement backend logic that automatically generates matches for players and/or teams that have registered for a tournament. This functionality is crucial for progressing the tournament to the next phase.
✅ Goals
- Retrieve all registered players or teams for a given tournament
- Create matchups based on a specific logic (e.g., random, seeded, round-robin, etc.)
- Store the matches in the database with relevant metadata (e.g., match ID, round number, players/teams involved, scheduled time if applicable)
- Handle edge cases (odd number of teams/players, duplicate entries, etc.)
🧩 Details
📌 Tasks
We need to implement backend logic that automatically generates matches for players and/or teams that have registered for a tournament. This functionality is crucial for progressing the tournament to the next phase.
✅ Goals
🧩 Details
Input: Tournament ID
Output: List of generated match records stored in the database
Match model should include:
📌 Tasks