add: metrage to company

This commit is contained in:
2026-02-16 12:34:15 +03:30
parent 2d3560dc65
commit f21f858b44
4 changed files with 16 additions and 1 deletions
@@ -7,12 +7,14 @@ import {
IsDateString,
IsEmail,
IsEnum,
IsInt,
IsNotEmpty,
IsOptional,
IsString,
IsUUID,
IsUrl,
Length,
Min,
ValidateNested,
} from "class-validator";
@@ -74,6 +76,12 @@ export class CreateCompanyDto extends PickType(CompleteRegistrationDto, ["phone"
@ApiProperty({ description: "آدرس تصویر کاور", example: "https://www.example.com/cover.jpg" })
coverImageUrl: string;
@IsOptional()
@IsInt({ message: CompanyMessage.METRAGE_MUST_BE_INT })
@Min(1, { message: CompanyMessage.METRAGE_MUST_BE_POSITIVE })
@ApiProperty({ description: "متراژ شرکت (متر مربع)", example: 500 })
metrage?: number;
@IsOptional()
@IsNotEmpty({ message: CompanyMessage.IS_ACTIVE_REQUIRED })
@IsBoolean({ message: CompanyMessage.IS_ACTIVE_MUST_BE_BOOLEAN })
@@ -114,6 +122,7 @@ export class CreateCompanyRequestDto extends PickType(CreateCompanyDto, [
"websiteUrl",
"profileImageUrl",
"coverImageUrl",
"metrage",
"industryId",
"products",
"services",