add: rent fields to company
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { ApiProperty, PickType } from "@nestjs/swagger";
|
||||
import { ApiProperty, ApiPropertyOptional, PickType } from "@nestjs/swagger";
|
||||
import { Type } from "class-transformer";
|
||||
import {
|
||||
ArrayMinSize,
|
||||
@@ -87,6 +87,21 @@ export class CreateCompanyDto extends PickType(CompleteRegistrationDto, ["phone"
|
||||
@ApiProperty({ description: "وضعیت فعالیت", example: true })
|
||||
isActive?: boolean;
|
||||
|
||||
@IsBoolean()
|
||||
@ApiProperty({ description: "وضعیت اجاره", example: true })
|
||||
isRented: boolean;
|
||||
|
||||
@IsOptional()
|
||||
@IsDateString()
|
||||
@ApiPropertyOptional({ description: " تاریخ پایان قرارداد اجاره در صورتیکه اجاره ای است" })
|
||||
rentEndAt?: string;
|
||||
|
||||
@IsOptional()
|
||||
@IsArray()
|
||||
@ValidateNested({ each: true })
|
||||
@ApiPropertyOptional({ description: "تصاویر قرارداد اجاره" })
|
||||
rentContractImages?: string[];
|
||||
|
||||
@IsNotEmpty({ message: CompanyMessage.INDUSTRY_ID_REQUIRED })
|
||||
@IsUUID("7", { message: CompanyMessage.INDUSTRY_ID_SHOULD_BE_UUID })
|
||||
@ApiProperty({ description: "شناسه صنعت", example: "123e4567-e89b-12d3-a456-426614174000" })
|
||||
|
||||
Reference in New Issue
Block a user