Added bio to User and reworked file structure for user interaction

This commit is contained in:
2025-02-15 13:27:10 +11:00
parent eaf40b3d91
commit 87fe03ce9e
4 changed files with 160 additions and 126 deletions

View File

@@ -8,7 +8,8 @@ CREATE TABLE IF NOT EXISTS "users" (
id INTEGER PRIMARY KEY AUTOINCREMENT,
username TEXT NOT NULL UNIQUE,
password_hash TEXT DEFAULT "",
created_at INTEGER DEFAULT (unixepoch())
created_at INTEGER DEFAULT (unixepoch()),
bio TEXT DEFAULT ""
) STRICT;
CREATE TRIGGER cleanup_expired_tokens
AFTER INSERT ON jwtblacklist