Backend update

This commit is contained in:
2024-09-14 21:57:41 +02:00
parent c58a26a691
commit 3931504d49
4 changed files with 141 additions and 101 deletions

View 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
)