ER, Context, Data Flow
ER, Context, Data Flow
SUBMITTED BY:
ARUN.U
21BCE3187
1|Page
Assessment – II
Introduction :
Entities:
2|Page
Employee: (EmployeeID, Name, Address, Contact, Department)
Relationships:
Customer, Employee, Admin login Optical shop Portal (M:1)
Admin add/view Supplier, Employee (1:M)
Customer makes Shopping Cart (1:1)
Customer views Product (1:M)
Customer updates Eye Power Specifications (1:M)
Eye Specifications updated to Product inventory(M:1)
Shopping cart contains Products (1:M)
Employee updates Product inventory (M:M)
Employee updates Sale (M:M)
Shopping cart checked out for Payment (1:1)
Payment Generates Receipt(1:1)
Payment updates Product(1:M)
Receipt Processes Delivery (1:1)
Advantages:
Disadvantages:
3|Page
Focus on Structure: Doesn't show process flow
Potential for Oversimplification: Real-world systems often have more
complex relationships that may be difficult to model simply in an ERD.
External Entities:
4|Page
Admin
Employee
Customer
Payment Gateway
Delivery Service
Initial Sketch:
5|Page
Data Flow Diagram:
Level 1 DFD: Place Order
Processes:
6|Page
Input: Product Data
Output: Product Selection (to be added to cart)
Customer Adds to Cart (1.1):
Input: Product Selection, Customer Data (if not already logged in)
Output: Updated Shopping Cart Data
Customer Confirms Order (1.2):
7|Page
Output: Updated Inventory Data
Data Stores:
After every purchase the inventory will be tracked and reported to admin
and Supplies were ordered and updated accordingly.
8|Page
9|Page