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

export class UpdateUserSettingDto {
  @ApiProperty({
    description: 'The ID of the user to apply the setting to.',
    example: 101,
  })
  @IsNumber()
  userId: number;

  @ApiProperty({
    description: 'The unique key for the setting.',
    example: 'MAX_ORGS_PER_USER',
  })
  @IsString()
  @IsNotEmpty()
  key: string;

  @ApiProperty({
    description: 'The specific value for the setting for this user (e.g., "50").',
    example: '50',
  })
  @IsString()
  @IsNotEmpty()
  value: string;
}