"games": {
"_id": string,
"name": string
}
"players": {
"_id": string,
"name": string,
"password": string,
"dateJoined": date
}
"highscores": {
"_id": string,
"gameId": string,
"playerId": string,
"value": number
}
"tournaments": {
"_id": string,
"players": array,
"games": array,
"name": string,
"timePerRound": number,
"maxPlayers": number,
"roundsPerGame": number,
"currentRound": number,
"dateCreated": date,
"active": boolean,
"currentPlayers": number,
"totalGames": number
}
"rounds": {
"_id": string,
"tournamentId": string,
"playerId": string,
"gameId": string,
"scoreValue": number,
"tournamentPoints": number,
"roundNr": number,
"hasPlayed": boolean,
"deadlineDate": date
}
(totalGames in tournament is equal to roundsPerGame multiplied bye the amount of games in the games-array)