added userid to reactions

This commit is contained in:
2024-06-05 11:09:50 +02:00
parent 56435e39d6
commit 566e952ce0

View File

@@ -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