inmemory to postgres

This commit is contained in:
2025-12-29 18:34:12 +01:00
parent 9e17d0752a
commit f5639a367f
176 changed files with 10175 additions and 468 deletions

View File

@@ -83,6 +83,10 @@ export class SeasonSponsorship implements IEntity<string> {
});
}
static rehydrate(props: SeasonSponsorshipProps): SeasonSponsorship {
return new SeasonSponsorship(props);
}
private static validate(props: Omit<SeasonSponsorshipProps, 'createdAt' | 'status'>): void {
if (!props.id || props.id.trim().length === 0) {
throw new RacingDomainValidationError('SeasonSponsorship ID is required');