Feat: Add pass_hash to users table for authentication

This commit is contained in:
2025-10-02 09:44:57 -07:00
parent 8cd486d7c2
commit 70fb4d3e74

View File

@@ -3,6 +3,7 @@ const schema = [
id INTEGER PRIMARY KEY,
username TEXT UNIQUE NOT NULL,
email TEXT UNIQUE NOT NULL,
pass_hash TEXT NOT NULL,
role TEXT NOT NULL DEFAULT 'user' CHECK(role IN ('user', 'admin', 'owner')),
banned_until DATETIME DEFAULT NULL,
ip_address TEXT,