This commit is contained in:
2025-12-11 13:50:38 +01:00
parent e4c1be628d
commit c7e5de40d6
212 changed files with 2965 additions and 763 deletions

View File

@@ -3,8 +3,9 @@
*
* Represents a prize awarded to a driver for a specific position in a season.
*/
import { RacingDomainValidationError, RacingDomainInvariantError } from '../errors/RacingDomainError';
import type { IEntity } from '@gridpilot/shared/domain';
import type { Money } from '../value-objects/Money';
@@ -23,7 +24,7 @@ export interface PrizeProps {
description?: string;
}
export class Prize {
export class Prize implements IEntity<string> {
readonly id: string;
readonly seasonId: string;
readonly position: number;