Refactor code, split routes, change url in backend and update in frontend. Still have bugs, infinite loading after signup?

This commit is contained in:
estherdev03
2025-03-19 02:09:30 -06:00
parent 3ac9ed00a2
commit c75fa01392
14 changed files with 582 additions and 510 deletions

View File

@@ -17,6 +17,12 @@ CREATE TABLE UserRole (
FOREIGN KEY (UserID) REFERENCES User (UserID) ON DELETE CASCADE
);
-- Category Entity (must be created before Product or else error)
CREATE TABLE Category (
CategoryID INT PRIMARY KEY,
Name VARCHAR(255) NOT NULL
);
-- Product Entity
CREATE TABLE Product (
ProductID INT PRIMARY KEY,
@@ -35,11 +41,6 @@ CREATE TABLE Image_URL (
FOREIGN KEY (ProductID) REFERENCES Product (ProductID)
)
-- Category Entity
CREATE TABLE Category (
CategoryID INT PRIMARY KEY,
Name VARCHAR(255) NOT NULL
);
-- Review Entity (Many-to-One with User, Many-to-One with Product)
CREATE TABLE Review (