selling Pg UI and Fav is done

This commit is contained in:
Mann Patel
2025-04-12 18:33:13 -06:00
parent 0f8bb622a4
commit 814c24c83f
5 changed files with 425 additions and 66 deletions

View File

@@ -102,7 +102,7 @@ CREATE TABLE Favorites (
ProductID INT,
FOREIGN KEY (UserID) REFERENCES User (UserID),
FOREIGN KEY (ProductID) REFERENCES Product (ProductID),
UNIQUE (UserID, ProductID) -- Prevents duplicate favorites
UNIQUE (UserID, ProductID)
);
-- Product-Category Junction Table (Many-to-Many)