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) {
|
export class CreateParentDto extends OmitType(CreateUserDto, ['role'] as const) {
|
||||||
@IsUUID()
|
@IsUUID()
|
||||||
@IsOptional()
|
|
||||||
@IsNotEmpty()
|
@IsNotEmpty()
|
||||||
user_id?: string;
|
user_id: string;
|
||||||
|
|
||||||
@IsOptional()
|
@IsOptional()
|
||||||
@IsUUID()
|
@IsUUID()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user