fix(work-orders): make Phase4 search index migration discoverable by EF

This commit is contained in:
Arthur Bassi 2026-07-10 11:45:24 -03:00
parent edcdc10395
commit 31675e49dd
3 changed files with 3027 additions and 0 deletions

View file

@ -42,6 +42,18 @@ namespace Data.SeaHavenIndustries
.Property(w => w.RowVersion)
.IsRowVersion();
builder.Entity<WorkOrder>()
.HasIndex(w => w.SiteCode)
.HasFilter("[istemplate] = 0");
builder.Entity<WorkOrder>()
.HasIndex(w => w.InternalWONumber)
.HasFilter("[istemplate] = 0");
builder.Entity<WorkOrder>()
.HasIndex(w => new { w.LifecycleStatus, w.ScheduledDate })
.HasFilter("[istemplate] = 0");
builder.Entity<Dispatch>()
.Property(d => d.RowVersion)
.IsRowVersion();

File diff suppressed because it is too large Load diff

View file

@ -2033,12 +2033,21 @@ namespace Data.SeaHavenIndustries.Migrations
b.HasIndex("AssignTo", "ScheduledDate");
b.HasIndex("InternalWONumber")
.HasFilter("[istemplate] = 0");
b.HasIndex("LifecycleStatus", "ScheduledDate")
.HasFilter("[istemplate] = 0");
b.HasIndex("LocationId");
b.HasIndex("PrimaryDispatchId");
b.HasIndex("ScheduledDate");
b.HasIndex("SiteCode")
.HasFilter("[istemplate] = 0");
b.HasIndex("WorkOrderType");
b.ToTable("workOrders");