Categories
CategoryID (PK)
CategoryName
Description
Products
ProductID (PK)
ProductName
CategoryID (FK)
SupplierID (FK)
Price
StockID (FK)
PromotionID (FK)
Description
Suppliers
SupplierID (PK)
SupplierName
ContactInfo
Address
Stock
StockID (PK)
Quantity
ProductID (FK)
WarehouseLocation
Employees
EmployeeID (PK)
EmployeeName
SupervisorID (FK) – for self-referencing (supervisor-employee)
JobTitle
ContactInfo
Customers
CustomerID (PK)
CustomerName
ContactInfo
FeedbackID (FK)
Feedback
FeedbackID (PK)
CustomerID (FK)
Rating
Comments
Orders
OrderID (PK)
CustomerID (FK)
OrderDate
TotalAmount
PaymentID (FK)
ShipperID (FK)
Invoices
InvoiceID (PK)
OrderID (FK)
PaymentID (FK)
PaymentDate
AmountPaid
Payments
PaymentID (PK)
PaymentType
PaymentStatus
Promotions
PromotionID (PK)
PromotionName
DiscountRate
StartDate
EndDate
Advertisements
AdID (PK)
PromotionID (FK)
AdContent
StartDate
EndDate
Carts
CartID (PK)
CustomerID (FK)
ProductID (FK)
Quantity
Services (Consultation)
ServiceID (PK)
ServiceType
EmployeeID (FK) – for consultation services
CustomerID (FK)
Shipping
ShipperID (PK)
ShipperName
ContactInfo
ShippingStatus
LoyaltyPoints
LoyaltyID (PK)
CustomerID (FK)
PointsEarned
PointsRedeemed