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

export class UpdateTenantDto {
  @ApiProperty({ example: 'ACME Corp. GmbH', required: false })
  @IsOptional()
  @IsString()
  @MaxLength(200)
  name?: string;

  @ApiProperty({ example: true, required: false })
  @IsOptional()
  @IsBoolean()
  isActive?: boolean;

  @ApiProperty({
    example: { locale: 'de-DE', timezone: 'Europe/Berlin' },
    required: false,
  })
  @IsOptional()
  @IsObject()
  settings?: Record<string, unknown>;
}
