fix(cv): protect revisions and measure rendering readiness
This commit is contained in:
@@ -480,6 +480,9 @@ namespace JobTrackerApi.Data
|
||||
// the reconciler (StartupInitializationExtensions), MySQL-safe; see that file + DbContext note.
|
||||
modelBuilder.Entity<CvVariant>().Property(x => x.OwnerUserId).HasMaxLength(255);
|
||||
modelBuilder.Entity<CvVariant>().Property(x => x.PublicSlug).HasMaxLength(64);
|
||||
// Existing integer column: make the UPDATE compare the loaded revision atomically.
|
||||
// No new database column or schema migration is required.
|
||||
modelBuilder.Entity<CvVariant>().Property(x => x.Version).IsConcurrencyToken();
|
||||
modelBuilder.Entity<CvVariantVersion>().Property(x => x.OwnerUserId).HasMaxLength(255);
|
||||
modelBuilder.Entity<CvVariant>()
|
||||
.HasIndex(x => x.PublicSlug)
|
||||
|
||||
Reference in New Issue
Block a user