Open majorbruteforce opened 8 months ago
@majorbruteforce please update the above flow as discussed so that we can start working on the first ERD draft and proceed accordingly Also,if possible,start making Trello tickets in the board
There are still things to be described further. @zakhaev26 change the endpoints as required and delete the ones that feel redundant.
cool, will be updating it in a couple of days along with ERD draft
When a player registers in the application, their default role is set to "player".
The PSA (Platform Super Admin) creates a squad and bulk inserts squad players. They can then upgrade a player (selected from the set of players not already assigned to that match's participating squad/team [TBD] (for fair play) to an admin for a particular match.
Note: There should be a mechanism in place to handle the expiration of admin privileges as dicussed .
PSA creates a match and assigns an admin to the match.
The admin logs in and gains access to the Moderation Panel, where they can manage the match they are assigned to. This includes tasks such as extending match details like team assignments (team 1, team 2) and squad assignments (squad 1, squad 2).
The admin creates teams for the specific match and can bulk insert many players from the set of squad players to build a team.
The admin updates the match by associating the built team with that match and squad (this process may be done programmatically).
Admin Gives Approval for the match build completion flag and then the match is shown to user interfaces.
Once the match is set up, it generates events when admin is in scoring phase (the specifics of this implementation are to be determined).
CC: @majorbruteforce @punitkr03
@zakhaev26 How are we planning to create the trello tickets?
@zakhaev26 How are we planning to create the trello tickets?
lets plan it out some other day.we don't have much of a participation yet,so we have time. trello isn't required for managing 2-3 contributors
trello isn't required for managing 2-3 contributors
Good point
Created prototype sample models, do check and tell if somethings missing Link : Model README.md CC: @majorbruteforce @soumil-kumar17 @punitkr03
APIs to be implemented:
Player:
PSA Upgrades player to admin:
Have separate collections for Admin/Player and PSA PSA can have same mail which was used to register as player.
After a successful upgrade:
Admin is responsible for moderating a match and all required API endpoints for that will be described in a separate thread.
PSA creates a Match and assigns an Admin to it:
The PSA creates a match with the following details:
PSA creates squads for the tournament:
A squad is an independent participant of the tournament (e.g. CSE-2 , IT-1 etc) and is a super set of teams that will play matches.
PSA will select a set of players from all verified players who have registered to the platform for a squad.
Include details:
Entity Relationships:
Event, Team, Player, Match, Stats and Squad are separate entities.
Creating Teams
After PSA assigns a match to an Admin, the admin is responsible to create the team that plays in that match. Match is a collection that has admin id, squad 1 and 2 id, team 1 and 2 id.
Admin can create teams from 'squad-player' collection
Events
A match generates events Events has team players + event data + sport + user id+ match id + tbd A single player will have a single stat collection, stat document for the user will be updated after each event Events will be trailed to the client in real-time + stored in db + tbd Events will be the core
To be further discussed: Events implementation, Statistics Calculation, Substitutions.