feat(combat): add combat domain enums, entities, and encounter consumption field

This commit is contained in:
Bastian Wagner
2026-08-19 15:27:05 +02:00
parent f24a5fea9c
commit 68edc04ed6
8 changed files with 241 additions and 0 deletions

View File

@@ -23,6 +23,11 @@ export class HuntEncounter {
@Column({ name: 'position', type: 'integer' })
position!: number;
// Set when a Combat is successfully created from this encounter. Prevents
// one HuntEncounter from spawning more than one Combat (spec §7).
@Column({ name: 'consumed_at', type: 'timestamptz', nullable: true })
consumedAt!: Date | null;
@CreateDateColumn({ name: 'created_at', type: 'timestamptz' })
createdAt!: Date;