import { IsEmail, IsMobilePhone, IsOptional, IsString } from "class-validator"; import { Column } from "typeorm"; export class UpdateUserDto{ @IsOptional() avatar: string; @IsOptional() full_name: string; @IsOptional() @IsMobilePhone('vi-VN') phone_number: string; @IsOptional() address: string; @IsOptional() @IsEmail() email: string; @IsOptional() role_id: string; @IsOptional() hash_password: string; @IsOptional() is_valid: boolean; }