mirror of https://github.com/immich-app/immich.git
28 lines
401 B
TypeScript
28 lines
401 B
TypeScript
import { IsNotEmpty, IsOptional } from 'class-validator';
|
|
|
|
export class CreateUserDto {
|
|
@IsNotEmpty()
|
|
email!: string;
|
|
|
|
@IsNotEmpty()
|
|
password!: string;
|
|
|
|
@IsNotEmpty()
|
|
firstName!: string;
|
|
|
|
@IsNotEmpty()
|
|
lastName!: string;
|
|
|
|
@IsOptional()
|
|
profileImagePath?: string;
|
|
|
|
@IsOptional()
|
|
isAdmin?: boolean;
|
|
|
|
@IsOptional()
|
|
isFirstLoggedIn?: boolean;
|
|
|
|
@IsOptional()
|
|
id?: string;
|
|
}
|