Skip to content

Commit

Permalink
Update PostgreSQL_Project.txt
Browse files Browse the repository at this point in the history
wokrs
  • Loading branch information
oppo266 authored Nov 17, 2023
1 parent fce41f9 commit e9b9185
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions database/PostgreSQL_Project.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ 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
);
-- PostgreSQL Table for Reports
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,
Expand Down

0 comments on commit e9b9185

Please sign in to comment.