forked from Yara724/api
Merge branch 'main' into integrate-my-work
This commit is contained in:
30
src/auth/dto/actor/create-field-expert.actor.dto.ts
Normal file
30
src/auth/dto/actor/create-field-expert.actor.dto.ts
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user