Added a user system with no proper user validation but working authorisation.
This commit is contained in:
4
backend/migrations/2022-03-19-191822_initial/down.sql
Normal file
4
backend/migrations/2022-03-19-191822_initial/down.sql
Normal file
@@ -0,0 +1,4 @@
|
||||
-- This file should undo anything in `up.sql`
|
||||
|
||||
drop table gamenight;
|
||||
drop table known_games;
|
||||
12
backend/migrations/2022-03-19-191822_initial/up.sql
Normal file
12
backend/migrations/2022-03-19-191822_initial/up.sql
Normal file
@@ -0,0 +1,12 @@
|
||||
-- Your SQL goes here
|
||||
|
||||
CREATE TABLE gamenight (
|
||||
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
|
||||
game text TEXT NOT NULL,
|
||||
datetime TEXT NOT NULL
|
||||
);
|
||||
|
||||
CREATE TABLE known_games (
|
||||
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
|
||||
game TEXT UNIQUE NOT NULL
|
||||
);
|
||||
Reference in New Issue
Block a user