







Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
The database planning and design for an e-commerce website, specifically focusing on amazon as the business model. It covers the homepage, product categories, payment, and product systems, as well as the objectives, use cases, and conceptual, logical, and physical database designs. A comprehensive overview of the database requirements, including entity-relationship diagrams, table structures, and sample data. It also discusses the implementation of useful database objects such as triggers, indexes, and views to enhance the functionality and performance of the e-commerce platform. This document would be valuable for students, developers, and database administrators involved in the design and implementation of e-commerce systems, particularly those interested in the amazon business model.
Typology: Cheat Sheet
1 / 13
This page cannot be seen from the preview
Don't miss anything!








Database Planning: We have chosen amazon as our business website. Amazon is an e- commerce store which sells and let other sellers to sell their products world wide. Homepage Products Categories
proceed to checkout.
Use case Description: Use case New User byes a product Trigger event When user proceeds to checkout Description A new user comes to our website for the first time, searches for his/her favourite products and purchases them. Actors Customer, System Pre-condition User must be registered. User must be logged in. Post-condition User must have a valid payment method. Flow User will first arrive on our homepage and will search for the product he/she wants. When the user selects the product and add them to the cart after that he/she will move towards checkout. System will check if the user is registered or logged in or not. If the user is registered and logged in the system will proceed toward checkout and if not it will ask them to register first. Exceptional Path User is already registered and logged in. Use case New Seller sells a product Trigger event When a new seller sells his/her products on our website. Description A new seller comes to our website and sells his/her products Actors Seller, System Pre-condition Seller must be registered. Seller must be logged in. Seller must be verified. Post-condition Seller must have products to sell. Flow When a seller first arrives on our website they will try to sell their products and system will check if the seller is verified or not and if he/she exists in the database. If not then the system will ask them to register first and get verified then sell their products. Exceptional Path Seller is already registered / logged in and is verified.
Logical Database Design Physical Database Design Field Name Description Data Type Size Accept Nulls? Role Example Tbl Categories Category_id Primary key of categories table int 5 n PK 1
Category_nam e Name of category varchar 50 n Winter cloths Category_type Type of category varchar 50 n cloths Tbl seller Seller_id Sellers primary id. int 5 n pk 1 Product_id Product id of products table int 5 n fk 1 name Name of the seller varchar 50 n John Tbl payment Payment_id Primary id of payments int 5 n pk 1 Category_id Primary id of categories table. int 5 n fk 1 date Date of payment date n 11/15/ Tbl Shopping Order Order_id Unique identifier of orders table int 5 n pk 2 Customer_id Unique identifier of customers table. int 5 n fk 2 date Date of shopping date n 10/5/ Tbl customer Customer_id Unique identifier of customer int n pk 1
table Order_id Unique identifier of order table int 5 n fk 4 Product_id Unique identifier of product table int 5 n fk 4 Payment_id Unique identifier of payment table int 5 n fk 4 Prototype – Database Implementation
Prototype - Useful Database Objects Triggers