import { RacingDomainValidationError } from '../errors/RacingDomainError'; export class TrackGameId { private constructor(private readonly value: string) {} static create(value: string): TrackGameId { if (!value || value.trim().length === 0) { throw new RacingDomainValidationError('Track game ID cannot be empty'); } return new TrackGameId(value.trim()); } toString(): string { return this.value; } equals(other: TrackGameId): boolean { return this.value === other.value; } }