Compare commits

..

No commits in common. "1f984f4392a869f490b9b6f709a3c7c2779345e3" and "2a33f4525767d15a029a1b77b4b94dc6df98bd85" have entirely different histories.

7 changed files with 1 additions and 58 deletions

View File

@ -1,8 +0,0 @@
export interface IDbBrand {
id?: string;
slug_name: string;
display_name: string;
image_blob: BinaryType;
}
export default IDbBrand;

View File

@ -1,7 +0,0 @@
export interface IDbCategory {
id?: string;
slug_name: string;
display_name: string
}
export default IDbCategory;

View File

@ -1,12 +0,0 @@
export interface IDbModel {
id?: string;
slug_name: string;
display_name: string;
brand_id: string;
category_id: string;
image_bfile: BinaryType;
is_trending: boolean;
base_price: number;
}
export default IDbModel;

View File

@ -1,11 +0,0 @@
export interface IDbRent {
vehicle_id: string;
user_id: string;
active: boolean;
iat: Date;
eat: Date;
need_survey: boolean;
km_at_start: number
}
export default IDbRent;

View File

@ -1,12 +0,0 @@
export interface IDbUser {
id?: string;
username: string;
firstname: string;
lastname: string;
dob: Date;
email: string;
is_mail_verified: boolean;
is_admin: boolean;
gdpr: Date;
hash: string
}

View File

@ -13,11 +13,4 @@ export async function comparePassword(password: string, hash: string) {
secret: Buffer.from(`${process.env["HASH_SECRET"]}`), secret: Buffer.from(`${process.env["HASH_SECRET"]}`),
algorithm: 2 algorithm: 2
}); });
} }
const CredentialService = {
compare: comparePassword,
hash: getHashFromPassword,
}
export default CredentialService;