baseuser and user model started
This commit is contained in:
@@ -0,0 +1,15 @@
|
|||||||
|
import {Logger} from '../logger';
|
||||||
|
|
||||||
|
export class BaseUser {
|
||||||
|
constructor(id, username, password, email, ip, lastupdated, verified, authcode, timeauthed) {
|
||||||
|
this.id = id;
|
||||||
|
this.username = username;
|
||||||
|
this.password = password;
|
||||||
|
this.email = email;
|
||||||
|
this.ip = ip;
|
||||||
|
this.lastupdated = lastupdated;
|
||||||
|
this.verified = verified;
|
||||||
|
this.authcode = authcode;
|
||||||
|
this.timeauthed = timeauthed;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -0,0 +1,12 @@
|
|||||||
|
import {Logger} from '../logger';
|
||||||
|
import {BaseUser} from './baseUser';
|
||||||
|
|
||||||
|
export class User extends BaseUser {
|
||||||
|
constructor(id, username, password, email, ip, lastupdated, verified, authcode, timeauthed) {
|
||||||
|
super(id, username, password, email, ip, lastupdated, verified, authcode, timeauthed);
|
||||||
|
}
|
||||||
|
|
||||||
|
async insertUser() {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user