2022-05-21 02:23:55 -05:00
|
|
|
import { IsNotEmpty, IsOptional } from 'class-validator';
|
|
|
|
|
|
|
|
|
|
export class CreateUserDto {
|
|
|
|
|
@IsNotEmpty()
|
|
|
|
|
email: string;
|
|
|
|
|
|
|
|
|
|
@IsNotEmpty()
|
|
|
|
|
password: string;
|
|
|
|
|
|
|
|
|
|
@IsNotEmpty()
|
|
|
|
|
firstName: string;
|
|
|
|
|
|
|
|
|
|
@IsNotEmpty()
|
|
|
|
|
lastName: string;
|
|
|
|
|
|
|
|
|
|
@IsOptional()
|
2022-06-06 18:16:03 +02:00
|
|
|
profileImagePath?: string;
|
2022-05-21 02:23:55 -05:00
|
|
|
|
|
|
|
|
@IsOptional()
|
2022-06-06 18:16:03 +02:00
|
|
|
isAdmin?: boolean;
|
2022-05-21 02:23:55 -05:00
|
|
|
|
|
|
|
|
@IsOptional()
|
2022-06-06 18:16:03 +02:00
|
|
|
isFirstLoggedIn?: boolean;
|
2022-05-21 02:23:55 -05:00
|
|
|
|
|
|
|
|
@IsOptional()
|
2022-06-06 18:16:03 +02:00
|
|
|
id?: string;
|
2022-05-21 02:23:55 -05:00
|
|
|
}
|