adding stuff to the onClick

This commit is contained in:
noahnghg
2025-04-20 21:18:43 -06:00
parent f7e4b49ac8
commit 25f2c3d8af
5 changed files with 39 additions and 4 deletions

View File

@@ -66,11 +66,12 @@ CREATE TABLE Review (
-- Transaction Entity (Many-to-One with User, Many-to-One with Product)
CREATE TABLE Transaction (
TransactionID INT PRIMARY KEY,
TransactionID INT NOT NULL AUTO_INCREMENT,
UserID INT,
ProductID INT,
Date DATETIME DEFAULT CURRENT_TIMESTAMP,
PaymentStatus VARCHAR(50),
PRIMARY KEY (TransactionID),
FOREIGN KEY (UserID) REFERENCES User (UserID),
FOREIGN KEY (ProductID) REFERENCES Product (ProductID)
);