-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProductCatalog.sql
39 lines (39 loc) · 1.07 KB
/
ProductCatalog.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
CREATE TABLE ProductCatalog (
ProductID INT PRIMARY KEY,
Name VARCHAR(255),
Description TEXT,
Price DECIMAL(10, 2),
QuantityInStock INT,
MinimumQuantityInStock INT,
MaximumQuantityInStock INT,
SupplierID INT,
CategoryID INT,
Brand VARCHAR(255),
Model VARCHAR(255),
SKU VARCHAR(50),
UPC VARCHAR(50),
EAN VARCHAR(50),
ISBN VARCHAR(50),
Color VARCHAR(50),
Size VARCHAR(50),
Weight DECIMAL(10, 2),
Height DECIMAL(10, 2),
Width DECIMAL(10, 2),
Depth DECIMAL(10, 2),
Material VARCHAR(255),
UsageInstructions TEXT,
WarrantyInformation TEXT,
MainImageUrl VARCHAR(255),
SecondaryImageUrls TEXT,
DemonstrationVideoUrl VARCHAR(255),
CreationDate DATETIME,
LastModifiedDate DATETIME,
AvailableForSale BIT,
VisibleInStore BIT,
AverageRating DECIMAL(3, 2),
NumberOfRatings INT,
NumberOfReviews INT,
-- ... additional columns as needed ...
FOREIGN KEY (SupplierID) REFERENCES Suppliers(SupplierID),
FOREIGN KEY (CategoryID) REFERENCES Categories(CategoryID)
);