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

export class RaceProtestDTO {
  @ApiProperty()
  @IsString()
  id!: string;

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

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

  @ApiProperty()
  incident!: {
    lap: number;
    description: string;
  };

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

  @ApiProperty()
  @IsString()
  filedAt!: string;
}