Trần Viết Sơn
Revert "Revert "Feature/update user""
8b6297d unverified
raw
history blame
485 Bytes
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;
}