import { ApiProperty } from '@nestjs/swagger';
import { IsBoolean, IsNumber, IsString } from 'class-validator';

export class ImportRaceResultsSummaryDTO {
  @ApiProperty()
  @IsBoolean()
  success!: boolean;

  @ApiProperty()
  @IsString()
  raceId!: string;

  @ApiProperty()
  @IsNumber()
  driversProcessed!: number;

  @ApiProperty()
  @IsNumber()
  resultsRecorded!: number;

  @ApiProperty({ type: [String], required: false })
  errors?: string[];
}