Can anyone help me to design database/table based on below criteria?
An e-commerce website is required which will allow visitors to browse, search and buy films. The following business logic applies:
- Each film can be available in DVD or Blu-ray formats with different stock codes and prices. Additional formats may be added in the future by the website administrator.
- Films should have a title, description, year they were released and a “star rating” out of ten stored against them.
- Films are associated to none or more actor and actors can be associated to none or more films as some films may be documentaries (with no actors).
- Films can be associated to one or more genre (such as action, adventure, Sci-Fi, etc).
- The number of genres and actors may change so the website administrator needs to be able to add/edit as many genres and actors as they like over time.
- Visitors of the website should be able to find films by browsing by actor or genre. When they do they should be able to see a list of all films that are associated to the actor/genre they have selected.
- In order to buy from the website, visitors must register their details to become a user.
- Users will have one or more addresses associated to their account. When they log in to the system in future all of their previously entered addresses should be available for them to select for their latest order. They should also be able to add a new address to their account at any time.
- When ordering the user will select one or more items from the available films (in a particular format). They will need to select a billing and deliver address from those they have previously entered and pay for their order by credit card.
- As the prices of the products can change over time the system should record what the price of each of the items in their order was at the time when they purchased as well as the total price of the entire order.
- Tracking of stock levels is not required – all products can be assumed to be in stock all of the time.