Added in-person expert

This commit is contained in:
SepehrYahyaee
2026-02-24 12:16:14 +03:30
parent 0d8858f458
commit 64b6101177
13 changed files with 512 additions and 22 deletions

View File

@@ -0,0 +1,30 @@
import { ApiProperty } from "@nestjs/swagger";
import { IsEmail, IsOptional, IsString, MinLength } from "class-validator";
export class CreateFieldExpertDto {
@ApiProperty({ example: "field.expert@example.com" })
@IsEmail()
email: string;
@ApiProperty({ example: "securePassword123", minLength: 6 })
@IsString()
@MinLength(6)
password: string;
@ApiProperty({ example: "علی" })
@IsString()
firstName: string;
@ApiProperty({ example: "محمدی" })
@IsString()
lastName: string;
@ApiProperty({ example: "09121234567" })
@IsString()
mobile: string;
@ApiProperty({ example: "02188776655", required: false })
@IsOptional()
@IsString()
phone?: string;
}