website refactor

This commit is contained in:
2026-01-16 16:46:57 +01:00
parent 37b1aa626c
commit 2f53727702
445 changed files with 1160 additions and 1150 deletions

View File

@@ -4,7 +4,7 @@
* Represents a registration of a driver for a specific race.
*/
import type { Entity } from '@core/shared/domain/Entity';
import { Entity } from '@core/shared/domain/Entity';
import { RacingDomainValidationError } from '../errors/RacingDomainError';
import { DriverId } from './DriverId';
import { RaceId } from './RaceId';
@@ -17,9 +17,8 @@ export interface RaceRegistrationProps {
registeredAt?: Date;
}
export class RaceRegistration implements Entity<string> {
readonly id: string;
readonly raceId: RaceId;
export class RaceRegistration extends Entity<string> {
readonly raceId: RaceId;
readonly driverId: DriverId;
readonly registeredAt: RegisteredAt;
@@ -29,7 +28,8 @@ export class RaceRegistration implements Entity<string> {
driverId: DriverId;
registeredAt: RegisteredAt;
}) {
this.id = props.id;
super(props.id);
this.raceId = props.raceId;
this.driverId = props.driverId;
this.registeredAt = props.registeredAt;