Skip to content

Commit

Permalink
Update migrations/1719409568000-multiuser.js
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
lelemm and coderabbitai[bot] authored Nov 11, 2024
1 parent a96ae90 commit 37b639d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions migrations/1719409568000-multiuser.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ export const up = async function () {
CREATE TABLE user_access
(user_id TEXT,
file_id TEXT,
FOREIGN KEY (user_id) REFERENCES users(id)
, FOREIGN KEY (file_id) REFERENCES files(id)
PRIMARY KEY (user_id, file_id),
FOREIGN KEY (user_id) REFERENCES users(id),
FOREIGN KEY (file_id) REFERENCES files(id)
);
ALTER TABLE files
Expand Down

0 comments on commit 37b639d

Please sign in to comment.