With your knowledge of the client's feature request and of the company's business rules and
policies, you decide to define the following one-to-many relationships in your database:
•
Each aircraft can have many shareholders
•
Each aircraft has many bookings
•
Each aircraft has many itineraries
•
Each shareholder has many itineraries
•
Each itinerary can have many flights (or legs)
Here are the revised table diagrams after you add the foreign keys defining these relationships:
The diagrams are known as E-R diagrams, or entity-relationship diagrams.
746
Appendix A: Beginner's Guide to Databases