import { Column, Entity, PrimaryColumn } from 'typeorm';

@Entity({ name: 'racing_results' })
export class ResultOrmEntity {
  @PrimaryColumn({ type: 'text' })
  id!: string;

  @Column({ type: 'text' })
  raceId!: string;

  @Column({ type: 'text' })
  driverId!: string;

  @Column({ type: 'int' })
  position!: number;

  @Column({ type: 'int' })
  fastestLap!: number;

  @Column({ type: 'int' })
  incidents!: number;

  @Column({ type: 'int' })
  startPosition!: number;
}