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 driver's membership in a league.
*/
import type { Entity } from '@core/shared/domain/Entity';
import { Entity } from '@core/shared/domain/Entity';
import { RacingDomainValidationError } from '../errors/RacingDomainError';
import { JoinedAt } from '../value-objects/JoinedAt';
import { DriverId } from './DriverId';
@@ -22,8 +22,7 @@ export interface LeagueMembershipProps {
joinedAt?: Date;
}
export class LeagueMembership implements Entity<string> {
readonly id: string;
export class LeagueMembership extends Entity<string> {
readonly leagueId: LeagueId;
readonly driverId: DriverId;
readonly role: MembershipRole;
@@ -38,7 +37,8 @@ export class LeagueMembership implements Entity<string> {
status: MembershipStatus;
joinedAt: JoinedAt;
}) {
this.id = props.id;
super(props.id);
this.leagueId = props.leagueId;
this.driverId = props.driverId;
this.role = props.role;