Backend update
This commit is contained in:
14
migrations/20240914120528_create_tables.sql
Normal file
14
migrations/20240914120528_create_tables.sql
Normal file
@@ -0,0 +1,14 @@
|
||||
CREATE TABLE IF NOT EXISTS players
|
||||
(
|
||||
id INTEGER PRIMARY KEY NOT NULL,
|
||||
name TEXT NOT NULL
|
||||
);
|
||||
CREATE TABLE IF NOT EXISTS votes
|
||||
(
|
||||
id INTEGER PRIMARY KEY NOT NULL,
|
||||
submit_date TEXT NOT NULL,
|
||||
player_id INTEGER NOT NULL,
|
||||
nickname TEXT NOT NULL,
|
||||
reason TEXT NOT NULL,
|
||||
is_plus BOOLEAN NOT NULL DEFAULT 0
|
||||
)
|
||||
Reference in New Issue
Block a user