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

export class CreateScrapConfigDto {
  @IsUrl()
  search_url: string;

  @IsBoolean()
  @IsOptional()
  enable: boolean;

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

  @IsNumber()
  web_id: number;
}
