mirror of
https://github.com/immich-app/immich.git
synced 2025-12-20 01:11:46 +03:00
28 lines
393 B
TypeScript
28 lines
393 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;
|
|
}
|