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

@@ -20,4 +20,11 @@ export class Game implements IEntity<GameId> {
name,
});
}
static rehydrate(props: { id: string; name: string }): Game {
return new Game({
id: GameId.create(props.id),
name: GameName.create(props.name),
});
}
}