Clean error alerts and harden startup migration

This commit is contained in:
2026-04-11 18:07:20 +02:00
parent b52371ea79
commit 48cd83b442
5 changed files with 47 additions and 14 deletions
+1
View File
@@ -59,6 +59,7 @@ namespace JobTrackerApi.Data
.HasIndex(c => c.OwnerUserId);
modelBuilder.Entity<Correspondence>()
.HasQueryFilter(c => CurrentUserId != null && c.JobApplication.OwnerUserId == CurrentUserId)
.HasOne(c => c.JobApplication)
.WithMany(j => j.Messages)
.HasForeignKey(c => c.JobApplicationId)