prepared implementation of permissions

This commit is contained in:
Patrick 2025-07-21 04:24:21 +02:00
parent d0af8e9b2e
commit 1adbcf9a44
2 changed files with 5 additions and 1 deletions

View File

@ -5,6 +5,7 @@ export interface UserEntry {
address: string;
username: string;
password: string;
permissions: number;
created: string;
}

View File

@ -20,6 +20,7 @@ const USER_DATABASE_SETUP: string[] = [
address TEXT,
username TEXT,
password TEXT,
permissions INTEGER DEFAULT 0,
created DATETIME DEFAULT CURRENT_TIMESTAMP NOT NULL
);`,
@ -179,7 +180,8 @@ export class User {
name: string;
address: string;
username: string;
password: string
password: string;
permissions: number;
created: string;
private _database: Database;
@ -191,6 +193,7 @@ export class User {
this.address = user.address;
this.username = user.username;
this.password = user.password;
this.permissions = user.permissions;
this.created = user.created;
this._database = db;
}