mirror of
https://github.com/spchcap/speech.capital.git
synced 2026-01-14 08:38:42 +00:00
Feat: Add pass_hash to users table for authentication
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user