From e9b918560b78d2fc4754944e60261a2007376519 Mon Sep 17 00:00:00 2001 From: oppo266 <8pp8413@gmail.com> Date: Fri, 17 Nov 2023 15:51:40 -0600 Subject: [PATCH] Update PostgreSQL_Project.txt wokrs --- database/PostgreSQL_Project.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/database/PostgreSQL_Project.txt b/database/PostgreSQL_Project.txt index 8addd69..07f525e 100644 --- a/database/PostgreSQL_Project.txt +++ b/database/PostgreSQL_Project.txt @@ -17,7 +17,7 @@ CREATE TABLE FeaturedContent ( CREATE TABLE Comment ( CommentID SERIAL PRIMARY KEY, UserEmail VARCHAR(255) REFERENCES UserAccount(Email), - ContentID INT REFERENCES FeaturedContent(ContentID), + ContentID INT NOT NULL, CommentText TEXT NOT NULL, CreationDate TIMESTAMP NOT NULL ); @@ -25,7 +25,7 @@ CREATE TABLE Comment ( CREATE TABLE Report ( ReportID SERIAL PRIMARY KEY, ItemID INT, - ReporterID INT REFERENCES UserAccount(Email), + ReporterID VARCHAR(255) REFERENCES UserAccount(Email), ItemType VARCHAR(50), ReportText TEXT NOT NULL, CreationDate TIMESTAMP NOT NULL,