I'm making a PHP-MySQL site that provides injury and transaction updates on athletes from major professional sports such as baseball, football, basketball, and hockey. For purposes of query speed, ease of coding, and flexibility should major changes to the site need to be made, which of the two following database structures would be best?
Structure A - A separate database for the players and teams of each sport
(Primary keys are underlined)
baseball_players
playerid
teamid
fname
lname
football_players
playerid
teamid
fname
lname
(and so on, for basketball and hockey)
baseball_teams
teamid
location
nickname
football_teams
teamid
location
nickname
(and so on, for basketball and hockey)
OR
Structure B - All sports use the same tables
players
playerid
teamid
fname
lname
teams
teamid
sportid
location
nickname
sports
sportid
sportname