forked from Ynov/ptitspas-ynov-back
nounou dto harmonise
This commit is contained in:
parent
70ae550733
commit
ff3cc7bc5d
@ -14,7 +14,6 @@ import {
|
||||
} from "class-validator";
|
||||
|
||||
export class CreateAssistanteDto extends OmitType(CreateUserDto, ['role'] as const) {
|
||||
|
||||
@IsUUID()
|
||||
@IsOptional()
|
||||
user_id?: string;
|
||||
@ -22,47 +21,47 @@ export class CreateAssistanteDto extends OmitType(CreateUserDto, ['role'] as con
|
||||
@IsString()
|
||||
@IsOptional()
|
||||
@Length(1, 50)
|
||||
numero_agrement?: string;
|
||||
approval_number?: string;
|
||||
|
||||
@Matches(/^\d{15}$/)
|
||||
@IsOptional()
|
||||
nir_chiffre?: string;
|
||||
nir?: string;
|
||||
|
||||
@IsInt()
|
||||
@Min(1)
|
||||
@Max(10)
|
||||
@IsOptional()
|
||||
nb_max_enfants?: number;
|
||||
max_children?: number;
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
biographie?: string;
|
||||
biography?: string;
|
||||
|
||||
@IsOptional()
|
||||
@IsBoolean()
|
||||
disponible?: boolean;
|
||||
available?: boolean;
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
@Length(1, 100)
|
||||
ville_residence?: string;
|
||||
residence_city?: string;
|
||||
|
||||
@IsOptional()
|
||||
@IsDateString()
|
||||
date_agrement?: string;
|
||||
agreement_date?: string;
|
||||
|
||||
@IsOptional()
|
||||
@IsInt()
|
||||
@Min(0)
|
||||
annee_experience?: number;
|
||||
years_experience?: number;
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
@Length(1, 100)
|
||||
specialite?: string;
|
||||
specialty?: string;
|
||||
|
||||
@IsOptional()
|
||||
@IsInt()
|
||||
@Min(0)
|
||||
place_disponible?: number;
|
||||
places_available?: number;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user