import { ApiProperty, PartialType } from '@nestjs/swagger';
import { CreateUserDto } from './create-user.dto';

// import { ApiProperty } from '@nestjs/swagger';
import { IsOptional, IsString } from 'class-validator';

export class UpdateUserDto extends PartialType(CreateUserDto) {
    // export class UpdateUserDto {
    @IsOptional()
    username: string;

    @IsOptional()
    email: string;

    @IsOptional()
    fullname: string;

    @IsOptional()
    phone: string;

    @IsOptional()
    password: string;

    @ApiProperty()
    @IsString()
    @IsOptional()
    isActive: string;

    @IsOptional()
    state: string | number | null;

    @IsOptional()
    municipality: string | number | null;

    @IsOptional()
    parish: string | number | null;

    @IsOptional()
    role: number;
}
