import { IsInt, IsString, MinLength } from 'class-validator';

export class CreateUnitMappingDto {
  @IsInt()
  productId!: number;

  @IsString()
  @MinLength(1)
  originalUnit!: string;

  @IsString()
  @MinLength(1)
  preferredUnit!: string;
}
