9 lines
350 B
SQL
9 lines
350 B
SQL
-- Your SQL goes here
|
|
|
|
create table gamenight_participants (
|
|
gamenight_id UUID NOT NULL,
|
|
user_id UUID NOT NULL,
|
|
CONSTRAINT FK_gamenight_id FOREIGN KEY (gamenight_id) REFERENCES gamenight(id) ON DELETE CASCADE,
|
|
CONSTRAINT FK_user_id FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE,
|
|
PRIMARY KEY(gamenight_id, user_id)
|
|
) |