parents dto creection
This commit is contained in:
@@ -4,9 +4,8 @@ import { IsNotEmpty, IsOptional, IsUUID } from "class-validator";
|
||||
|
||||
export class CreateParentDto extends OmitType(CreateUserDto, ['role'] as const) {
|
||||
@IsUUID()
|
||||
@IsOptional()
|
||||
@IsNotEmpty()
|
||||
user_id?: string;
|
||||
user_id: string;
|
||||
|
||||
@IsOptional()
|
||||
@IsUUID()
|
||||
|
||||
Reference in New Issue
Block a user