Staging to Production #51
@@ -36,7 +36,7 @@ public sealed class CvMatcherDbContext : DbContext
|
|||||||
entity.Property(x => x.JobDocumentId).HasMaxLength(64).IsRequired();
|
entity.Property(x => x.JobDocumentId).HasMaxLength(64).IsRequired();
|
||||||
entity.Property(x => x.ResultJson).IsRequired();
|
entity.Property(x => x.ResultJson).IsRequired();
|
||||||
entity.Property(x => x.CreatedAt).HasDefaultValueSql("SYSUTCDATETIME()");
|
entity.Property(x => x.CreatedAt).HasDefaultValueSql("SYSUTCDATETIME()");
|
||||||
entity.HasIndex(x => new { x.CvDocumentId, x.JobDocumentId, x.Language }).IsUnique();
|
entity.HasIndex(x => new { x.CvDocumentId, x.JobDocumentId }).IsUnique();
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity<CvMatcherChatCacheEntity>(entity =>
|
modelBuilder.Entity<CvMatcherChatCacheEntity>(entity =>
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ namespace CvMatcher.Data.Migrations
|
|||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
b.HasIndex("CvDocumentId", "JobDocumentId", "Language")
|
b.HasIndex("CvDocumentId", "JobDocumentId")
|
||||||
.IsUnique();
|
.IsUnique();
|
||||||
|
|
||||||
b.ToTable("Results", "cvMatcher");
|
b.ToTable("Results", "cvMatcher");
|
||||||
|
|||||||
Reference in New Issue
Block a user