prepared implementation of permissions
This commit is contained in:
parent
d0af8e9b2e
commit
1adbcf9a44
|
|
@ -5,6 +5,7 @@ export interface UserEntry {
|
|||
address: string;
|
||||
username: string;
|
||||
password: string;
|
||||
permissions: number;
|
||||
created: string;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue