Hello. I am trying to make a php application that will get the data from a mysql database. The database is to store some members information. Something important to know, is that every member, is part of a team, and every team is part of a group. Every team has a team leader and maybe a team helper. Every Group has a group leader.
I am not sure how to go about it in the best way. I have thought about different solutions.
Table Members : member_id, name, group_id, team_id, is_team_leader, is_group_leader, is_team_helper.
OR
Table Members : member_id, name, team_id
Table Groups : group_id, group_leader_id (will be the member_id of a member)
Table Teams: team_id, team_leader_id, team_helper_id
Does anybody have a better way to do it? Thanks!