test: create test for concurrency

This commit is contained in:
voltsrage
2026-06-23 05:17:22 +08:00
parent 383df0dde5
commit d8e142fffe
8 changed files with 2625 additions and 58 deletions
@@ -55,5 +55,9 @@ public class EncounterConfiguration : IEntityTypeConfiguration<Encounter>
builder.HasIndex(e => new { e.PatientId, e.AdmittedAt });
builder.HasIndex(e => new { e.Status, e.AdmittedAt })
.HasFilter("status = 'ACTIVE'");
builder.HasIndex(e => new { e.PatientId, e.EncounterType })
.IsUnique()
.HasDatabaseName("ix_encounters_patient_active_type")
.HasFilter("status = 'ACTIVE'");
}
}