implemented new model for database, new routes for save. Fixed logout not allowing post requests

This commit is contained in:
2026-03-30 13:22:04 +02:00
parent 5781eef189
commit b808b0017b
12 changed files with 94 additions and 3 deletions
+8
View File
@@ -5,3 +5,11 @@ CREATE TABLE users (
email VARCHAR(120) NOT NULL UNIQUE,
created_at DATETIME DEFAULT CURRENT_TIMESTAMP
);
CREATE TABLE game_state (
id INTEGER PRIMARY KEY AUTOINCREMENT,
user_id INTEGER NOT NULL,
board TEXT NOT NULL, -- JSON String (z.B. "[0,4,7,5,2,6,1,3]")
mode TEXT NOT NULL, -- "queens" oder "rooks"
created_at DATETIME DEFAULT CURRENT_TIMESTAMP
);