correction parents to bdd
This commit is contained in:
parent
e999839bc5
commit
c5b25fb0b2
@ -4,8 +4,9 @@ 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