FIx: delete champs par default

This commit is contained in:
Matthieu
2025-09-25 11:26:22 +02:00
parent e64fba3ae7
commit 2ce164784f
9 changed files with 226 additions and 200 deletions

View File

@@ -26,10 +26,6 @@ export class CreateComposantDto {
@IsNumber({}, { message: 'prix must be a valid number' })
prix?: number | null;
@IsOptional()
@IsString()
emplacement?: string;
@IsOptional()
@IsString()
typeComposantId?: string;
@@ -60,10 +56,6 @@ export class UpdateComposantDto {
@IsNumber({}, { message: 'prix must be a valid number' })
prix?: number | null;
@IsOptional()
@IsString()
emplacement?: string;
@IsOptional()
@IsString()
typeComposantId?: string;

View File

@@ -41,10 +41,6 @@ export class CreateMachineDto {
@IsDecimal()
prix?: string;
@IsOptional()
@IsString()
emplacement?: string;
@IsOptional()
@IsString()
typeMachineId?: string;
@@ -79,10 +75,6 @@ export class UpdateMachineDto {
@IsDecimal()
prix?: string;
@IsOptional()
@IsString()
emplacement?: string;
@IsOptional()
@IsString()
typeMachineId?: string;

View File

@@ -26,10 +26,6 @@ export class CreatePieceDto {
@IsNumber({}, { message: 'prix must be a valid number' })
prix?: number | null;
@IsOptional()
@IsString()
emplacement?: string;
@IsOptional()
@IsString()
typePieceId?: string;
@@ -60,10 +56,6 @@ export class UpdatePieceDto {
@IsNumber({}, { message: 'prix must be a valid number' })
prix?: number | null;
@IsOptional()
@IsString()
emplacement?: string;
@IsOptional()
@IsString()
typePieceId?: string;

View File

@@ -29,10 +29,6 @@ export class CreateCustomFieldDto {
@IsBoolean()
required?: boolean;
@IsOptional()
@IsString()
defaultValue?: string;
@IsOptional()
@IsArray()
options?: string[]; // Pour les champs de type SELECT
@@ -51,10 +47,6 @@ export class UpdateCustomFieldDto {
@IsBoolean()
required?: boolean;
@IsOptional()
@IsString()
defaultValue?: string;
@IsOptional()
@IsArray()
options?: string[];