I am new to FastAPI so maybe this is a stupid question. I have this task:
Part 1.
1.Create FastAPI base project
2.Create User model (id, name, age(min=0, max=100), email)
3.Create Game model (id, name)
4.Create Endpoints:
Get games (get list of all games and users who connected to this games)
Get me (get info about current user and info about all connected games)
Connect to game. When user send this request. Need to create one obj like User - Game.
I can't figure out what " Need to create one obj like User - Game." does mean. What should this object be in order to store a list of all players connected to the game, and where to store such an object in general so that you can always update it and have access to it?
Any advice would be greatly appreciated, because right now I feel like I'm missing something obvious, and I'm not sure how to budge here.