Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
Products Table:
– ProductID (Primary Key)
– ProductName
– Description
– Price
– StockQuantity
– CategoryID (Foreign Key referencing Categories table)
– CategoryID (Primary Key)
– CategoryName
– CustomerID (Primary Key)
– FirstName
– LastName
– Email
– Password
– Address
– Phone
– OrderID (Primary Key)
– CustomerID (Foreign Key referencing Customers table)
– OrderDate
– TotalAmount
– OrderItemID (Primary Key)
– OrderID (Foreign Key referencing Orders table)
– ProductID (Foreign Key referencing Products table)
– Quantity
– Subtotal
– Each customer has a unique identifier and can place multiple orders.
– Each order has multiple order items, representing the products included in that order.
– The OrderItems table contains information about the quantity and subtotal for each product in an order.
You can expand on this schema based on additional features you may want to include in your online merch store. For example, you might want to add tables for reviews, discounts, or shipping information. Additionally, consider incorporating data types, constraints, and indexes to ensure data integrity and improve query performance.