-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🛩️🍙 ↝ [SSM-62 SSM-61 SSM-41 SSM-33 SSC-37]: Voting on anomalies now w…
…orks, just need to slot it into the missions guide
- Loading branch information
1 parent
a162bd0
commit e03c966
Showing
2 changed files
with
92 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
CREATE TABLE public.votes ( | ||
id BIGINT GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY, | ||
user_id UUID NOT NULL REFERENCES profiles(id), | ||
classification_id BIGINT NOT NULL REFERENCES classifications(id), | ||
anomaly_id BIGINT NOT NULL REFERENCES anomalies(id), | ||
created_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(), | ||
UNIQUE(user_id, classification_id) | ||
); |