CUB-29: Create filament inventory database migration

This commit is contained in:
cubecraft-agents[bot]
2026-04-26 13:16:13 +00:00
parent 230c3b295d
commit a0cdacc7be
5 changed files with 2350 additions and 2 deletions

View File

@@ -77,6 +77,14 @@ public class SpoolConfiguration : BaseEntityConfiguration<Spool>
builder.HasIndex(e => e.MaterialBaseId)
.HasDatabaseName("ix_spools_material_base_id");
// Index on material_finish_id for spool filtering
builder.HasIndex(e => e.MaterialFinishId)
.HasDatabaseName("ix_spools_material_finish_id");
// Index on material_modifier_id for spool filtering
builder.HasIndex(e => e.MaterialModifierId)
.HasDatabaseName("ix_spools_material_modifier_id");
// Index on is_active for active spool queries
builder.HasIndex(e => e.IsActive)
.HasDatabaseName("ix_spools_is_active");