bug fixers 10/20

This commit is contained in:
2026-10-20 15:33:19 +05:30
parent 0e423b806c
commit 47479fb4f2
43 changed files with 13191 additions and 811 deletions
@@ -32,6 +32,10 @@ public sealed class ProductConfigConfiguration : IEntityTypeConfiguration<Produc
builder.Property(c => c.CustomVariantsEnabled).IsRequired().HasDefaultValue(false);
builder.Property(c => c.ItemImagesEnabled).IsRequired().HasDefaultValue(false);
builder.Property(c => c.CustomWarrantyPeriodsEnabled).IsRequired().HasDefaultValue(false);
builder.Property(c => c.StockNatureEnabled).IsRequired().HasDefaultValue(true);
builder.Property(c => c.TrackingModeEnabled).IsRequired().HasDefaultValue(true);
builder.Property(c => c.LowStockAlertsEnabled).IsRequired().HasDefaultValue(true);
builder.Property(c => c.AlertWarehouseEnabled).IsRequired().HasDefaultValue(true);
// PostgreSQL xmin system column as the optimistic concurrency token (ETag).
builder.Property(c => c.RowVersion).IsRowVersion();
@@ -213,7 +213,11 @@ public static class DataSeeder
WarrantyPeriodsEnabled = true,
CustomVariantsEnabled = false,
ItemImagesEnabled = false,
CustomWarrantyPeriodsEnabled = false
CustomWarrantyPeriodsEnabled = false,
StockNatureEnabled = true,
TrackingModeEnabled = true,
LowStockAlertsEnabled = true,
AlertWarehouseEnabled = true
});
return true;
}