diff --git a/init/00_InitDB.sql b/init/00_InitDB.sql index 5496a00..7dce65b 100644 --- a/init/00_InitDB.sql +++ b/init/00_InitDB.sql @@ -33,6 +33,7 @@ CREATE TABLE Comments CREATE TABLE Reaction ( id bigserial PRIMARY KEY, + userid bigserial REFERENCES Users NOT NULL, post bigserial REFERENCES Posts(id) NOT NULL, positive boolean DEFAULT NULL, deleted timestamp WITH TIME ZONE default NULL