:open_hands: Hello ! guys i have a question about model relationship
I Have 3 Tables
- Games (game_id , name)
- Teams (team_id , name)
- UserTeams (user_id , game_id)
User has a diffirent TeamGames
I want to get the teams of User by user_id
So the result wanted :
- user_id:1 -> teams (( +team_a [ games : csgo , cod ] +team_b [games : csgo ] ... ))
Any Suggestions please ? (by using Model's)