import { IsEnum, IsNumber, IsOptional, IsString } from 'class-validator';

export class UpsertConfigDto {
  @IsString()
  key_name: string;

  @IsString()
  @IsOptional()
  value: string;

  @IsEnum(['string', 'number'])
  type: 'string' | 'number';
}
