mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
27 lines
393 B
TypeScript
27 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;
|
|
}
|