prepared implementation of permissions
This commit is contained in:
parent
d0af8e9b2e
commit
1adbcf9a44
|
|
@ -5,6 +5,7 @@ export interface UserEntry {
|
||||||
address: string;
|
address: string;
|
||||||
username: string;
|
username: string;
|
||||||
password: string;
|
password: string;
|
||||||
|
permissions: number;
|
||||||
created: string;
|
created: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,7 @@ const USER_DATABASE_SETUP: string[] = [
|
||||||
address TEXT,
|
address TEXT,
|
||||||
username TEXT,
|
username TEXT,
|
||||||
password TEXT,
|
password TEXT,
|
||||||
|
permissions INTEGER DEFAULT 0,
|
||||||
created DATETIME DEFAULT CURRENT_TIMESTAMP NOT NULL
|
created DATETIME DEFAULT CURRENT_TIMESTAMP NOT NULL
|
||||||
);`,
|
);`,
|
||||||
|
|
||||||
|
|
@ -179,7 +180,8 @@ export class User {
|
||||||
name: string;
|
name: string;
|
||||||
address: string;
|
address: string;
|
||||||
username: string;
|
username: string;
|
||||||
password: string
|
password: string;
|
||||||
|
permissions: number;
|
||||||
created: string;
|
created: string;
|
||||||
|
|
||||||
private _database: Database;
|
private _database: Database;
|
||||||
|
|
@ -191,6 +193,7 @@ export class User {
|
||||||
this.address = user.address;
|
this.address = user.address;
|
||||||
this.username = user.username;
|
this.username = user.username;
|
||||||
this.password = user.password;
|
this.password = user.password;
|
||||||
|
this.permissions = user.permissions;
|
||||||
this.created = user.created;
|
this.created = user.created;
|
||||||
this._database = db;
|
this._database = db;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue