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

@Entity({ name: 'team_stats' })
export class TeamStatsOrmEntity {
  @PrimaryColumn({ type: 'uuid' })
  teamId!: string;

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

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

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

  @Column({ type: 'text', array: true })
  languages!: string[];

  @Column({ type: 'integer' })
  totalWins!: number;

  @Column({ type: 'integer' })
  totalRaces!: number;

  @Column({ type: 'integer' })
  rating!: number;

  @Column({ type: 'text', nullable: true })
  category!: string | null;
}