Engage endpoint
This commit is contained in:
parent
6fcbb92691
commit
d93dc7fd89
4 changed files with 73 additions and 0 deletions
7
server/migrations/0005_engagements_table.sql
Normal file
7
server/migrations/0005_engagements_table.sql
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
CREATE TABLE IF NOT EXISTS engagements (
|
||||
user_id BIGINT NOT NULL,
|
||||
post_id BIGINT NOT NULL,
|
||||
FOREIGN KEY (user_id) REFERENCES users (id),
|
||||
FOREIGN KEY (post_id) REFERENCES posts (id),
|
||||
PRIMARY KEY (user_id, post_id)
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue