-
Notifications
You must be signed in to change notification settings - Fork 0
/
user.model.ts
38 lines (27 loc) 路 828 Bytes
/
user.model.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import { Role, Address, BaseEntity } from "./index";
import { AuthType } from "../enums/auth-type.enum";
/** A portal user */
export class User extends BaseEntity<User>{
/** The full name */
name: string;
/** The email (used also as username) */
email: string;
/** The phone numbers */
phone?: Array<string>;
/** The role */
role: Role;
/** The birth date */
birthDate?: Date;
/** The registration date */
registrationDate?: Date;
/** The residence address */
residenceAddress?: Address;
/** The google id, populated if authType Google */
googleId?: string;
/** The user encrypted password, populated if authType is local */
password?: string;
/** The user auth type */
authType: AuthType;
/** The user image */
image?: string;
}