Adds Adding of Games to the system.
This commit is contained in:
1 parent
3f51d52edf
commit
28f7306d57
40 files changed
+792
-130
No files matched your search
@@ -0,0 +1,3 @@
|
||||
-- This file should undo anything in `up.sql`
|
||||
|
||||
drop table owned_game;
|
||||
@@ -0,0 +1,9 @@
|
||||
-- Your SQL goes here
|
||||
|
||||
create table owned_game (
|
||||
user_id UUID NOT NULL,
|
||||
game_id UUID NOT NULL,
|
||||
CONSTRAINT FK_gamenight_id FOREIGN KEY (user_id) REFERENCES client(id) ON DELETE CASCADE,
|
||||
CONSTRAINT FK_user_id FOREIGN KEY (game_id) REFERENCES game(id) ON DELETE CASCADE,
|
||||
PRIMARY KEY(user_id, game_id)
|
||||
)
|
||||
Reference in new issue
Block a user