diff --git a/collections/comprises.json b/collections/comprises.json index 6bd2663daba1febb251d5787d3465468cc0e2704..1d5380cd0c741824606e80c6513338913e3870a7 100644 --- a/collections/comprises.json +++ b/collections/comprises.json @@ -1,37 +1,14 @@ [ - { - "round_id": 1, - "tournament_id": 1, - "game_id": 1 - }, - { - "round_id": 1, - "tournament_id": 1, - "game_id": 2 - }, - { - "round_id": 1, - "tournament_id": 1, - "game_id": 3 - }, - { - "round_id": 1, - "tournament_id": 1, - "game_id": 4 - }, - { - "round_id": 2, - "tournament_id": 1, - "game_id": 5 - }, - { - "round_id": 2, - "tournament_id": 1, - "game_id": 6 - }, - { - "round_id": 3, - "tournament_id": 1, - "game_id": 7 - } + {"round_id": 1, "tournament_id": 1, "game_id": 1}, + {"round_id": 1, "tournament_id": 1, "game_id": 2}, + {"round_id": 2, "tournament_id": 1, "game_id": 3}, + {"round_id": 2, "tournament_id": 1, "game_id": 4}, + {"round_id": 1, "tournament_id": 2, "game_id": 5}, + {"round_id": 1, "tournament_id": 2, "game_id": 6}, + {"round_id": 2, "tournament_id": 2, "game_id": 7}, + {"round_id": 2, "tournament_id": 2, "game_id": 8}, + {"round_id": 1, "tournament_id": 3, "game_id": 9}, + {"round_id": 1, "tournament_id": 3, "game_id": 10}, + {"round_id": 2, "tournament_id": 3, "game_id": 11}, + {"round_id": 2, "tournament_id": 3, "game_id": 12} ] diff --git a/collections/game.json b/collections/game.json index f0f2bab01b5ecf715fde6ba4a1275d89c92ff754..ca33794c304d2e49dae692b01fc2ca81af799f1d 100644 --- a/collections/game.json +++ b/collections/game.json @@ -1,37 +1,14 @@ [ - { - "team1_id": 1, - "team2_id": 2, - "winner_id": 1 - }, - { - "team1_id": 3, - "team2_id": 4, - "winner_id": 3 - }, - { - "team1_id": 5, - "team2_id": 6, - "winner_id": 5 - }, - { - "team1_id": 7, - "team2_id": 8, - "winner_id": 7 - }, - { - "team1_id": 1, - "team2_id": 3, - "winner_id": 1 - }, - { - "team1_id": 5, - "team2_id": 7, - "winner_id": 5 - }, - { - "team1_id": 1, - "team2_id": 5, - "winner_id": 1 - } + {"id": 1, "team1_id": 1, "team2_id": 2, "winner_id": 1}, + {"id": 2, "team1_id": 3, "team2_id": 4, "winner_id": 3}, + {"id": 3, "team1_id": 5, "team2_id": 6, "winner_id": 5}, + {"id": 4, "team1_id": 7, "team2_id": 8, "winner_id": 7}, + {"id": 5, "team1_id": 9, "team2_id": 10, "winner_id": 9}, + {"id": 6, "team1_id": 11, "team2_id": 12, "winner_id": 11}, + {"id": 7, "team1_id": 1, "team2_id": 3, "winner_id": 1}, + {"id": 8, "team1_id": 2, "team2_id": 4, "winner_id": 2}, + {"id": 9, "team1_id": 5, "team2_id": 7, "winner_id": 5}, + {"id": 10, "team1_id": 6, "team2_id": 8, "winner_id": 6}, + {"id": 11, "team1_id": 9, "team2_id": 11, "winner_id": 9}, + {"id": 12, "team1_id": 10, "team2_id": 12, "winner_id": 10} ] diff --git a/collections/round.json b/collections/round.json index b577e55da556910db286a743c8b05814522d829b..3a158abc1d799a187b161d42735d94f983499954 100644 --- a/collections/round.json +++ b/collections/round.json @@ -1,44 +1,44 @@ [ - { - "tournament_id": 1, - "nb_round": 1, - "nb_games": 8, - "cooldown_period": "2 hours" - }, - { - "tournament_id": 1, - "nb_round": 2, - "nb_games": 4, - "cooldown_period": "1 day" - }, - { - "tournament_id": 1, - "nb_round": 3, - "nb_games": 2, - "cooldown_period": "3 hours" - }, - { - "tournament_id": 1, - "nb_round": 4, - "nb_games": 1, - "cooldown_period": "5 hours" - }, - { - "tournament_id": 2, - "nb_round": 1, - "nb_games": 4, - "cooldown_period": "1 hour" - }, - { - "tournament_id": 2, - "nb_round": 2, - "nb_games": 2, - "cooldown_period": "6 hours" - }, - { - "tournament_id": 2, - "nb_round": 3, - "nb_games": 1, - "cooldown_period": "2 days" - } + { + "id": 1, + "tournament_id": 1, + "nb_round": 1, + "nb_games": 2, + "cooldown_period": "2 hours" + }, + { + "id": 2, + "tournament_id": 1, + "nb_round": 2, + "nb_games": 2, + "cooldown_period": "1 day" + }, + { + "id": 3, + "tournament_id": 2, + "nb_round": 1, + "nb_games": 2, + "cooldown_period": "3 hours" + }, + { + "id": 4, + "tournament_id": 2, + "nb_round": 2, + "nb_games": 2, + "cooldown_period": "6 hours" + }, + { + "id": 5, + "tournament_id": 3, + "nb_round": 1, + "nb_games": 2, + "cooldown_period": "2 days" + }, + { + "id": 6, + "tournament_id": 3, + "nb_round": 2, + "nb_games": 2, + "cooldown_period": "1 hour" + } ] diff --git a/collections/team.json b/collections/team.json index e9f6cd2524685765015453d05d2d5aa6dfe3a6f8..fc1da05388b55d84c3240994db44928b8ce33c36 100644 --- a/collections/team.json +++ b/collections/team.json @@ -1,34 +1,14 @@ [ - { - "name": "Team Alpha", - "score": 3 - }, - { - "name": "Team Bravo", - "score": 0 - }, - { - "name": "Team Charlie", - "score": 1 - }, - { - "name": "Team Delta", - "score": 0 - }, - { - "name": "Team Echo", - "score": 2 - }, - { - "name": "Team Foxtrot", - "score": 0 - }, - { - "name": "Team Golf", - "score": 1 - }, - { - "name": "Team Hotel", - "score": 0 - } + {"id": 1, "name": "Equipe 1", "score": 2}, + {"id": 2, "name": "Equipe 2", "score": 1}, + {"id": 3, "name": "Equipe 3", "score": 1}, + {"id": 4, "name": "Equipe 4", "score": 0}, + {"id": 5, "name": "Equipe 5", "score": 2}, + {"id": 6, "name": "Equipe 6", "score": 1}, + {"id": 7, "name": "Equipe 7", "score": 1}, + {"id": 8, "name": "Equipe 8", "score": 0}, + {"id": 9, "name": "Equipe 9", "score": 2}, + {"id": 10, "name": "Equipe 10", "score": 1}, + {"id": 11, "name": "Equipe 11", "score": 1}, + {"id": 12, "name": "Equipe 12", "score": 0} ] diff --git a/collections/tournament.json b/collections/tournament.json index 59a8fbb10d303fb25079ff578d4e1e8fa888a9e8..990e76a609bc7325ae67c9304bc0464b6413f0e5 100644 --- a/collections/tournament.json +++ b/collections/tournament.json @@ -1,18 +1,29 @@ [ - { - "title": "Spring Championship", - "description": "The annual spring championship.", - "nb_teams": 16, - "start_time": { "$date": "2024-07-01T09:00:00Z" }, - "start_signup": { "$date": "2024-06-01T00:00:00Z" }, - "stop_signup": { "$date": "2024-06-30T23:59:59Z" } - }, - { - "title": "Autumn Cup", - "description": "The competitive autumn cup.", - "nb_teams": 8, - "start_time": { "$date": "2024-10-15T10:00:00Z" }, - "start_signup": { "$date": "2024-09-15T00:00:00Z" }, - "stop_signup": { "$date": "2024-10-14T23:59:59Z" } - } + { + "id": 1, + "title": "Tournoi A", + "description": "Description A", + "nb_teams": 4, + "start_time": 1625108400, + "start_signup": 1622505600, + "stop_signup": 1625097600 + }, + { + "id": 2, + "title": "Tournoi B", + "description": "Description B", + "nb_teams": 4, + "start_time": 1625108400, + "start_signup": 1622505600, + "stop_signup": 1625097600 + }, + { + "id": 3, + "title": "Tournoi C", + "description": "Description C", + "nb_teams": 4, + "start_time": 1625108400, + "start_signup": 1622505600, + "stop_signup": 1625097600 + } ] diff --git a/collections/user.json b/collections/user.json index 466e6ad188aa983bea5386dd3fcaa15dcba74da6..d2f31788083d29f979040e107dba69ab820dbcc6 100644 --- a/collections/user.json +++ b/collections/user.json @@ -1,58 +1,26 @@ [ - { - "nickname": "Alice", - "email": "alice@example.com", - "pwd": "password123", - "is_admin": 1, - "team_id": 1 - }, - { - "nickname": "Bob", - "email": "bob@example.com", - "pwd": "password123", - "is_admin": 0, - "team_id": 2 - }, - { - "nickname": "Charlie", - "email": "charlie@example.com", - "pwd": "password123", - "is_admin": 0, - "team_id": 3 - }, - { - "nickname": "Dave", - "email": "dave@example.com", - "pwd": "password123", - "is_admin": 0, - "team_id": 4 - }, - { - "nickname": "Eve", - "email": "eve@example.com", - "pwd": "password123", - "is_admin": 0, - "team_id": 5 - }, - { - "nickname": "Frank", - "email": "frank@example.com", - "pwd": "password123", - "is_admin": 0, - "team_id": 6 - }, - { - "nickname": "Grace", - "email": "grace@example.com", - "pwd": "password123", - "is_admin": 0, - "team_id": 7 - }, - { - "nickname": "Heidi", - "email": "heidi@example.com", - "pwd": "password123", - "is_admin": 0, - "team_id": 8 - } + {"id": 1, "nickname": "User1", "email": "user1@example.com", "pwd": "pwd1", "is_admin": 0, "team_id": 1}, + {"id": 2, "nickname": "User2", "email": "user2@example.com", "pwd": "pwd2", "is_admin": 0, "team_id": 1}, + {"id": 3, "nickname": "User3", "email": "user3@example.com", "pwd": "pwd3", "is_admin": 0, "team_id": 2}, + {"id": 4, "nickname": "User4", "email": "user4@example.com", "pwd": "pwd4", "is_admin": 0, "team_id": 2}, + {"id": 5, "nickname": "User5", "email": "user5@example.com", "pwd": "pwd5", "is_admin": 0, "team_id": 3}, + {"id": 6, "nickname": "User6", "email": "user6@example.com", "pwd": "pwd6", "is_admin": 0, "team_id": 3}, + {"id": 7, "nickname": "User7", "email": "user7@example.com", "pwd": "pwd7", "is_admin": 0, "team_id": 4}, + {"id": 8, "nickname": "User8", "email": "user8@example.com", "pwd": "pwd8", "is_admin": 0, "team_id": 4}, + {"id": 9, "nickname": "User9", "email": "user9@example.com", "pwd": "pwd9", "is_admin": 0, "team_id": 5}, + {"id": 10, "nickname": "User10", "email": "user10@example.com", "pwd": "pwd10", "is_admin": 0, "team_id": 5}, + {"id": 11, "nickname": "User11", "email": "user11@example.com", "pwd": "pwd11", "is_admin": 0, "team_id": 6}, + {"id": 12, "nickname": "User12", "email": "user12@example.com", "pwd": "pwd12", "is_admin": 0, "team_id": 6}, + {"id": 13, "nickname": "User13", "email": "user13@example.com", "pwd": "pwd13", "is_admin": 0, "team_id": 7}, + {"id": 14, "nickname": "User14", "email": "user14@example.com", "pwd": "pwd14", "is_admin": 0, "team_id": 7}, + {"id": 15, "nickname": "User15", "email": "user15@example.com", "pwd": "pwd15", "is_admin": 0, "team_id": 8}, + {"id": 16, "nickname": "User16", "email": "user16@example.com", "pwd": "pwd16", "is_admin": 0, "team_id": 8}, + {"id": 17, "nickname": "User17", "email": "user17@example.com", "pwd": "pwd17", "is_admin": 0, "team_id": 9}, + {"id": 18, "nickname": "User18", "email": "user18@example.com", "pwd": "pwd18", "is_admin": 0, "team_id": 9}, + {"id": 19, "nickname": "User19", "email": "user19@example.com", "pwd": "pwd19", "is_admin": 0, "team_id": 10}, + {"id": 20, "nickname": "User20", "email": "user20@example.com", "pwd": "pwd20", "is_admin": 0, "team_id": 10}, + {"id": 21, "nickname": "User21", "email": "user21@example.com", "pwd": "pwd21", "is_admin": 0, "team_id": 11}, + {"id": 22, "nickname": "User22", "email": "user22@example.com", "pwd": "pwd22", "is_admin": 0, "team_id": 11}, + {"id": 23, "nickname": "User23", "email": "user23@example.com", "pwd": "pwd23", "is_admin": 0, "team_id": 12}, + {"id": 24, "nickname": "User24", "email": "user24@example.com", "pwd": "pwd24", "is_admin": 0, "team_id": 12} ]