fix: remove duplicated files.

This commit is contained in:
Ahmed Bouhuolia
2020-09-16 21:47:22 +02:00
parent ca92c925a9
commit 31d6488075
2 changed files with 0 additions and 798 deletions

View File

@@ -1,38 +0,0 @@
import bcrypt from 'bcryptjs';
import TenantModel from 'models/TenantModel';
export default class TenantUser extends TenantModel {
/**
* Virtual attributes.
*/
static get virtualAttributes() {
return ['fullName'];
}
/**
* Table name
*/
static get tableName() {
return 'users';
}
/**
* Timestamps columns.
*/
static get timestamps() {
return ['createdAt', 'updatedAt'];
}
/**
* Verify the password of the user.
* @param {String} password - The given password.
* @return {Boolean}
*/
verifyPassword(password) {
return bcrypt.compareSync(password, this.password);
}
fullName() {
return `${this.firstName} ${this.lastName || ''}`;
}
}