You are on page 1of 2

Case Study: Online Bookstore

A small online bookstore named "BookWorms" wants to develop a database to


manage its operations more efficiently. BookWorms sells various types of
books, including fiction, non-fiction, children's books, and educational books.
The bookstore has a wide range of customers who can purchase books online
through their website. Customers can create accounts, browse books, add
items to their shopping carts, and complete purchases.

Some key requirements and entities involved:

Books: Each book has a unique ISBN (International Standard Book Number),
title, author(s), genre, price, and quantity available in stock.

Customers: Customers can register on the website by providing their name,


email address, shipping address, and payment information.

Orders: Customers can place orders for one or more books. Each order has a
unique order number, order date, total price, and status (e.g., pending,
processing, shipped).

Shopping Cart: Customers can add books to their shopping carts before
checking out. The shopping cart contains information about the books added,
quantity, and total price.

Authors: Each book can have one or more authors. Authors have a unique ID,
name, and biography.

Genres: Books belong to specific genres such as fiction, non-fiction, mystery,


romance, etc. Each genre has a name and description.

Based on the above requirements, your task is to design an ER diagram for the
BookWorms online bookstore system. Consider the relationships between
entities, cardinality, and attributes.
Tasks:

Identify the entities involved in the system.


Define the attributes for each entity.
Determine the relationships between entities.
Assign appropriate cardinality (one-to-one, one-to-many, many-to-many) to
the relationships.
Design the ER diagram representing the bookstore system.

You might also like