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

export class UpdateUserStatusDto {
  @ApiProperty({ description: 'ID of the user to update', example: 'usr_abc123' })
  @IsString()
  userId!: string;

  @ApiProperty({ description: 'Whether the user should be active', example: true })
  @IsBoolean()
  isActive!: boolean;

  @ApiProperty({ description: 'Reason for the status change (min 5 chars)', example: 'Account reactivated after review', minLength: 5 })
  @IsString()
  @MinLength(5)
  reason!: string;
}
