forked from Ynov/ptitspas-ynov-back
14 lines
377 B
TypeScript
14 lines
377 B
TypeScript
import { OmitType } from "@nestjs/swagger";
|
|
import { CreateUserDto } from "./create_user.dto";
|
|
import { IsNotEmpty, IsOptional, IsUUID } from "class-validator";
|
|
|
|
export class CreateParentDto extends OmitType(CreateUserDto, ['role'] as const) {
|
|
@IsUUID()
|
|
@IsOptional()
|
|
@IsNotEmpty()
|
|
user_id?: string;
|
|
|
|
@IsOptional()
|
|
@IsUUID()
|
|
co_parent_id?: string;
|
|
} |