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

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

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

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

  @Column({ type: 'timestamptz' })
  registeredAt!: Date;
}