Files
Livebeat/backend/models/user/user.interface.ts
Mondei1 19b7c05d75 Socket connection now works
- Pairing a new device works

(I did a lot since the last commit)
2021-11-14 01:42:21 +01:00

16 lines
291 B
TypeScript

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
}