feat(dashboard): add owner-scoped layouts with atomic revisions
This commit is contained in:
@@ -101,6 +101,15 @@ namespace JobTrackerApi.Data
|
||||
.Property(x => x.UiLanguage)
|
||||
.HasMaxLength(16);
|
||||
|
||||
modelBuilder.Entity<ApplicationUser>()
|
||||
.Property(x => x.DashboardLayoutRevision)
|
||||
.HasDefaultValue(0L);
|
||||
// Layout writes use the revision-guarded endpoint; Identity's whole-user update must not replay stale values.
|
||||
modelBuilder.Entity<ApplicationUser>().Property(x => x.DashboardLayoutJson)
|
||||
.Metadata.SetAfterSaveBehavior(Microsoft.EntityFrameworkCore.Metadata.PropertySaveBehavior.Ignore);
|
||||
modelBuilder.Entity<ApplicationUser>().Property(x => x.DashboardLayoutRevision)
|
||||
.Metadata.SetAfterSaveBehavior(Microsoft.EntityFrameworkCore.Metadata.PropertySaveBehavior.Ignore);
|
||||
|
||||
modelBuilder.Entity<AccountDeletionRequest>().Property(x => x.OwnerUserId).HasMaxLength(255);
|
||||
modelBuilder.Entity<AccountDeletionRequest>().Property(x => x.OwnerKey).HasMaxLength(64);
|
||||
modelBuilder.Entity<AccountDeletionRequest>().Property(x => x.RequestedByUserId).HasMaxLength(255);
|
||||
|
||||
Reference in New Issue
Block a user