Initial commit

This commit is contained in:
2020-10-19 19:00:17 +02:00
parent 634ead79db
commit 48140f557b
61 changed files with 18269 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
import { Document } from 'mongoose';
export enum UserType {
ADMIN = 'admin',
USER = 'user',
GUEST = 'guest'
}
export interface IUser extends Document {
name: string,
password: string,
salt: string,
type: UserType,
lastLogin: Date,
twoFASecret?: string,
createdAt?: Date
}