Er Diagrams
Er Diagrams
2. Order:
o PK: OrderID
o FK: CustomerID (references Customer)
o Attributes: OrderDate, TotalAmount, Status
3. OrderDetails :
o PK: OrderDetailsID
o FK: OrderID (references Order)
o FK: ProductID (references Product)
o Attributes: Quantity, PricePerUnit, Discount
4. Product:
o PK: ProductID
o Attributes: ProductName, Price, Category, StockQuantity
5. Payment:
o PK: PaymentID
o FK: OrderID (references Order)
o Attributes: PaymentMethod, PaymentAmount, PaymentStatus
4. Order has Payment: Cardinality: 1-to-1 (One order has one payment) , PK: PaymentID (in Payment).
Manager Perspective
Entities and Attributes:
1. Manager:
o PK: ManagerID
o Attributes: Name, Email, Phone
2. Product:
o PK: ProductID
o FK: SupplierID (references Supplier)
o FK: ManagerID (references Manager)
o Attributes: ProductName, Price, QuantityAvailable, Category
3. Stock:
o PK: StockID
o FK: ProductID (references Product)
o Attributes: ReorderLevel, CurrentQuantity, LastUpdated
4. Order:
o PK: OrderID
o FK: ManagerID (references Manager)
o Attributes: OrderDate, TotalAmount, Status
5. Report:
o PK: ReportID
o FK: ManagerID (references Manager)
o Attributes: ReportType, GeneratedOn, Content
6. Supplier:
o PK: SupplierID
o Attributes: SupplierName, ContactInfo