Draw the ERD for the following high-level description of an airplane system:
Question:
Draw the ERD for the following high-level description of an airplane system:
1. Entities:
o Airplane: Represents an individual aircraft, with attributes such as a unique identifier, model, capacity, and maintenance status.
o Flight: Represents a specific flight, with attributes like flight number, departure and arrival airports, scheduled departure and arrival times, and actual departure and arrival times.
o Passenger: Represents an individual passenger, with attributes like a unique identifier, name, contact information, and seat number.
o Crew: Represents a crew member, including pilots, flight attendants, and other staff. It may have attributes like an identifier, name, role, and contact information.
2. Relationships:
o Airplane-Flight Relationship: An airplane can be associated with multiple flights, and a flight is operated by a specific airplane. This relationship is typically represented by a foreign key in the Flight entity that references the Airplane entity.
o Flight-Passenger Relationship: A flight can have multiple passengers, and a passenger can be associated with multiple flights. This relationship is often represented by a many-to-many junction table that connects the Flight and Passenger entities.
o Flight-Crew Relationship: A flight requires a crew to operate it. This relationship can be represented by a many-to-many junction table connecting the Flight and Crew entities.
o Crew-Airplane Relationship: A crew member may be assigned to a specific airplane for a flight or maintenance task. This relationship can be represented by a foreign key in the Crew entity that references the Airplane entity.
3. Additional Entities and Relationships:
o Airport: Represents an airport, with attributes such as an identifier, name, location, and facilities. Flights can have relationships with departure and arrival airports.
o Maintenance Task: Represents a maintenance task performed on an airplane, with attributes like a unique identifier, description, start time, and completion time. An airplane can have relationships with multiple maintenance tasks.
Modern Database Management
ISBN: 978-0133544619
12th edition
Authors: Jeff Hoffer, Ramesh Venkataraman, Heikki Topi