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

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

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

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

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

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

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