Online Bookstore: Group 1
Online Bookstore: Group 1
GROUP 1
SOHAM DAN 12CS10059
HARITABH SINGH 12CS10023
DHRUV JAIN 12CS30043
ASEEM PATNI 12CS10008
SUB-MODULES
Sub Module Schema / Attributes
Books ISBN_no
Language
Dimension
Pages
Cover
Ranking
Price
Author author_id
Name
Description
Publisher Pub_id
Name
Customer C_id
Name
E_mail
Phone Number
Password
Supplier supplier_id
Name
Rating
Relations between submodules
published_by {
ISBN_no
pub_id
}
authored_by {
ISBN_no
author_id
}
supplied_by {
ISBN_no
supplier_id
}
reviews {
ISBN_no
customer_id
data
review_text
rating
}
buys {
data
discount
quantity
}
similar {
ISBN_no_1
ISBN_no_2
}
FUNCTIONALITIES SUPPORTED /
QUERIES HANDLED :
● Maintain data associated with the inventory (a collection of books)
•A book has a title, author and price
•The inventory also keep track of the stock/quantity of each book
•Maintain records for many customers
•A customer can be either a member or non-member.
•A customer has a username (unique across all users), password (no
restrictions), email address (no restrictions), and postal address
(unverified.)
•Anyone may sign up for a customer account.
•Allow any customer to become a member.
•Show a listing of available books
Books are to be displayed in ascending alphabetical order by title.
•Each book will list the following from left to right
•Title
•Author
•Price
•Allow customers and managers to log in and out of the system.
•Users (both customers and the manager) will be logged out if inactive for
30 minutes.
•Shopping cart
•Anyone is able to add one or more books to the shopping cart.
•The shopping cart does not need to allow multiple copies of any book.
•Checkout
•Checkout is only available to logged-in customers. A user that is not
logged in as a customer is given a chance to log in.
•Member customers may enter a promotion code.
•Only one promotion code may be used per purchase
•The promotion is a fixed percentage discount that is to be applied to an
entire order.
•The discount is specified by the manager at the time of the promotion’s
creation or most recent update/edit.
•Collect a 16-digit credit card number from the customer
•Log/record the transaction
•Allow manager to specify a stop-order for a book
•Each book has its own stop-order status–either on or off. Details of its use
are involved in the following feature.
•Notify manager when books need to be reordered
•When the quantity a book falls below a threshold, the manager is notified
that the book needs to be reordered.
•One exception is if the manager has already specified a stop-order for this
book.
•Every book must either have stop-order enabled or disabled
•Allow manager to update stock quantities
•Allow manager to change any book's price
•Allow manager to view transaction logs
•Allow manager to create promotions
•A promotion is a percentage discount that can be applied to an entire
order
•Promotions may only be used by member customers
•A promotion has an expiration date specified by the manager
When a promotion is created, it is emailed to all member customers via the
email address on record.
SCHEMAS
CREATE TABLE AUTHOR ( AUTHOR_ID VARCHAR (200), NAME
VARCHAR (200), CONSTRAINT pk_author_id PRIMARY KEY
(AUTHOR_ID));