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

export class SponsorDriverDTO {
  @ApiProperty()
  @IsString()
  id: string = '';

  @ApiProperty()
  @IsString()
  name: string = '';

  @ApiProperty()
  @IsString()
  country: string = '';

  @ApiProperty()
  @IsNumber()
  position: number = 0;

  @ApiProperty()
  @IsNumber()
  races: number = 0;

  @ApiProperty()
  @IsNumber()
  impressions: number = 0;

  @ApiProperty()
  @IsString()
  team: string = '';
}

