import { IsEmail, IsIn, IsOptional, IsString } from 'class-validator';

export class UpdateUserDto {
  @IsString()
  @IsOptional()
  name?: string;

  @IsEmail()
  @IsOptional()
  email?: string;

  @IsString()
  @IsOptional()
  roleId?: string;

  @IsString()
  @IsOptional()
  @IsIn(['invited', 'active', 'inactive', 'suspended'])
  status?: 'invited' | 'active' | 'inactive' | 'suspended';
}
