I need to make the ER diagram and the relational schema of the Ski rentals. I have an Customer
, Rental
and Ski
as a entities as well as their attributes. Customers
and Rentals
should have the one-to-many relationship and the relationship between Rentals
and Ski
should be many-to-many (one rental can have many skis and one ski can be rented to many customers). As I did some research on how to make the relational schema, I found out that it is mandatory to make the junction table Rentals_skis
that include foreign keys from the Rentals
and Ski
. Is it necessary to add primary key to the junction table? Also, should I add new entity Rentals_skis
in my ER diagram?
This is the links to my diagrams that I made using Dia.
Relational schema: https://i.stack.imgur.com/0LJH0.jpg
ER diagram: https://i.stack.imgur.com/Hv4b7.jpg