Case #1: Jonesburgh: Business Rules
Case #1: Jonesburgh: Business Rules
TEAM
PLAYER
PK
PlayerID
FK1
TeamID
Player_L_Name
Player_F_Name
Player_Height
Player_Weight
PK
TeamID
TeamCity
TeamStadium
TeamOwner
CityID
TeamName
has
FK1
has
has
VISITOR_TEAM
d
TEAM_IS_VISTOR
COACH
PK
CoachID
FK1
TeamID
Coach_F_Name
Coach_L_Name
PK,FK1
V_TeamID
FK1
TeamCity
VisitDate
TeamName
FK1
CITY
PK
CityID
visits
CityName
CityPop
CityAirport
TEAM_IS_HOST
GAME
HOST_TEAM
PK,FK1
H_TeamID
FK1
TeamCity
HostDate
TeamName
FK1
O
COACH_IS_PHYS
COACH_IS_OFFENSE
PHYSICAL TRAINER
PK,FK1
CoachID
OFFENSIVE
PK,FK1
CoachID
COACH_IS_DEF
DEFENSE
PK,FK1
CoachID
PK,FK1
PK,FK2
V_TeamID
H_TeamID
hosts
HostScore
VisitorScore
Winner
Business Rules
A city has one team.
A team belongs to one city.
A team has many players.
A player belongs to one team.
A team can play many games.
Each game can be played by two teams.
Each game has one visitor, and one host.
A team can visit many games.
A team can host many games.
A team can have many coaches.
Each coach belongs to one team.
A coach may be an offensive, defensive, physical trainer
or all.