test: create test for concurrency
This commit is contained in:
@@ -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'");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user