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

export class CreateGatherConfigDto {
  @ApiProperty({ example: 'Default 2x Rates' })
  @IsString()
  @MaxLength(100)
  config_name: string;

  @ApiPropertyOptional({ example: 'Standard 2x gather rates' })
  @IsString()
  @IsOptional()
  description?: string;

  @ApiPropertyOptional()
  @IsObject()
  @IsOptional()
  config_data?: Record<string, any>;
}
