Release 1.1.0: QR-Reportimport, Regal-Auswahlmodal, Einlagern/Auslagern-Verknuepfungen aus Reifenlager, Stabilitaetsfixes

This commit is contained in:
spaethf committed 2026-09-26 23:24:14 +02:00
1 parent cba9414e92
commit 3404fb9875
25 files changed
+5106 -744

No files matched your search

+27 -1
View File
@@ -17,6 +17,7 @@ public class AppDbContext : DbContext
public DbSet<StorageLocation> StorageLocations => Set<StorageLocation>();
public DbSet<TireStack> TireStacks => Set<TireStack>();
public DbSet<TireItem> TireItems => Set<TireItem>();
public DbSet<TireInspection> TireInspections => Set<TireInspection>();
public DbSet<SiteSettings> SiteSettings => Set<SiteSettings>();
// Kanban entities
@@ -84,7 +85,7 @@ public class AppDbContext : DbContext
{
entity.ToTable("Customers");
entity.HasKey(e => e.Id);
entity.Property(e => e.FirstName).IsRequired().HasMaxLength(100);
entity.Property(e => e.FirstName).HasMaxLength(100);
entity.Property(e => e.LastName).IsRequired().HasMaxLength(100);
entity.Property(e => e.Company).HasMaxLength(200);
entity.Property(e => e.Phone).HasMaxLength(20);
@@ -230,6 +231,31 @@ public class AppDbContext : DbContext
.OnDelete(DeleteBehavior.Cascade);
});
// TireInspection configuration
modelBuilder.Entity<TireInspection>(entity =>
{
entity.ToTable("TireInspections");
entity.HasKey(e => e.Id);
entity.Property(e => e.Source).HasMaxLength(50);
entity.Property(e => e.RecordSn).HasMaxLength(100);
entity.Property(e => e.ReportUrl).HasMaxLength(500);
entity.Property(e => e.LicensePlate).HasMaxLength(20);
entity.Property(e => e.Recommendation).HasMaxLength(1000);
entity.Property(e => e.RawJson).HasColumnType("LONGTEXT");
entity.Property(e => e.RatingFL).HasConversion<int>();
entity.Property(e => e.RatingFR).HasConversion<int>();
entity.Property(e => e.RatingRL).HasConversion<int>();
entity.Property(e => e.RatingRR).HasConversion<int>();
entity.HasIndex(e => e.TireStackId);
entity.HasIndex(e => e.RecordSn);
entity.HasOne(e => e.TireStack)
.WithMany(t => t.Inspections)
.HasForeignKey(e => e.TireStackId)
.OnDelete(DeleteBehavior.Cascade);
});
// SiteSettings configuration
modelBuilder.Entity<SiteSettings>(entity =>
{