From 70fb4d3e74da38e2bb274fb41873cc182660fe51 Mon Sep 17 00:00:00 2001 From: multipleof4 Date: Thu, 2 Oct 2025 09:44:57 -0700 Subject: [PATCH] Feat: Add pass_hash to users table for authentication --- functions/api/schema.js | 1 + 1 file changed, 1 insertion(+) diff --git a/functions/api/schema.js b/functions/api/schema.js index 66926a5..f426e0e 100644 --- a/functions/api/schema.js +++ b/functions/api/schema.js @@ -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,