Add session-state and cookies

This commit is contained in:
hansi
2025-11-30 12:35:21 +01:00
parent 06e5322931
commit 84e1e152f8
9 changed files with 524 additions and 50 deletions

View File

@@ -0,0 +1,10 @@
CREATE TABLE IF NOT EXISTS sessions (
id TEXT PRIMARY KEY,
username TEXT NOT NULL,
created_at INTEGER NOT NULL,
expires_at INTEGER NOT NULL,
FOREIGN KEY (username) REFERENCES users(username) ON DELETE CASCADE
);
INSERT INTO schema_version (version) VALUES ('20251129_162900_add_table_sessions');
COMMIT;