baseuser and user model started

This commit is contained in:
Ben
2018-08-30 10:04:41 +01:00
parent 12ca0b16a8
commit 47980250c4
2 changed files with 27 additions and 0 deletions

View File

@@ -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;
}
}

View File

@@ -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() {
}
}