Added Login and Register handlers for actix backend

This commit is contained in:
Roflin committed 2023-03-24 22:28:18 +01:00
1 parent d961896242
commit 1c8110cdb0
21 files changed
+331 -114

No files matched your search

@@ -0,0 +1,3 @@
-- This file should undo anything in `up.sql`
drop table gamenight_participants;
@@ -0,0 +1,9 @@
-- 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)
)