import { IsEmail, IsNotEmpty, IsNumber, IsOptional, IsPhoneNumber, IsString, } from 'class-validator'; export class CreateUserDto { @IsNotEmpty() @IsString() username: string; @IsOptional() @IsEmail() @IsString() emailAddress: string; @IsOptional() @IsString() role: string; @IsNotEmpty() @IsString() firstName: string; @IsNotEmpty() @IsString() lastName: string; @IsOptional() @IsPhoneNumber() @IsString() phoneNumber: string; @IsOptional() @IsString() sellerName: string; @IsNotEmpty() @IsString() hash: string; }