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

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

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

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

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

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

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

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