parents dto creection
This commit is contained in:
parent
53126dd7e4
commit
4f4ca28682
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user