In: Computer Science
Draw a data model for the following:
A travel agency is frequently asked questions about tourist destinations. For example, customers want to know details of the climate for a particular month, the population of the city, and other geographic facts. Sometimes they request the flying time and distance between two cities. The manager has asked you to create a database to maintain these facts.
To create the data model for the given system, let’s follow the below steps:
Step 1: Identify the Tables/Entities in the system:
The system given can have below tables in the data mode:
Step 2: Identify the attributes the system can have in the data model
The identified tables can have below attributes in it:
Step 3: Identify the key and foreign key attributes in the identified tables
**Primary Key is BOLD and underlined whereas Foreign key is having FK next to the attribute name
Step 4: Draw the data model for the identified tables and attributes:
Step 5: Relationships in the data model:
Step 6: Relationship notation in the data model:
1. One to one is displayed as below:
2. One to many is displayed as below:
3. Many to many is displayed as below: