Feat: Add user roles for admin/owner powers

This commit is contained in:
2025-10-02 09:07:19 -07:00
parent 5443cde6c3
commit 0ab28bb33a

View File

@@ -2,6 +2,7 @@ const schema = [
`CREATE TABLE IF NOT EXISTS users (
id INTEGER PRIMARY KEY,
username TEXT UNIQUE NOT NULL,
role TEXT NOT NULL DEFAULT 'user' CHECK(role IN ('user', 'admin', 'owner')),
created_at DATETIME DEFAULT CURRENT_TIMESTAMP
);`,
`CREATE TABLE IF NOT EXISTS subs (