import { IsNotEmpty, IsOptional, IsUUID, IsNumber, IsBoolean, IsDateString, Min } from 'class-validator';

export class CreateExchangeRateDto {
  @IsUUID() @IsNotEmpty()
  from_currency_id: string;

  @IsUUID() @IsNotEmpty()
  to_currency_id: string;

  @IsNumber() @IsNotEmpty() @Min(0)
  rate: number;

  @IsDateString() @IsNotEmpty()
  effective_date: string;

  @IsBoolean() @IsOptional()
  is_active?: boolean;
}
