I'm just doing my first steps with Laravel and web development in general. For this step of my project I'm designing DB for tournament website.
What I eventually need: Every match has 3 maps. Every map has own score for each team (score_left_team -Map_name - score right team ). And every match has general score (left_team_score - right_team_score) Perfect example: https://overwatchleague.com/en-us/match/10223
How can I create the correct relationships and improve my design below?
Team::
id
name
Player::
id
team_id (belongsTo Team::class)
name
Map::
id
name
photo
Match_Map::
id
map_id (belongsTo Map::class)
match_id (belongsTo Match::class)
score_left
score_right
Match::
id
date
stage_name
group_name
left_team_id (belongsTo Team::class)
right_team_id (belongsTo Team::class)
score_left
score_right
winner (How to create here relationship?)
status
I appreciate any tips!