// using System; using CvMatcher.Data; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; #nullable disable namespace CvMatcher.Data.Migrations { [DbContext(typeof(CvMatcherDbContext))] [Migration("20260608193046_AddParseErrorPrompts")] partial class AddParseErrorPrompts { /// protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasDefaultSchema("cvMatcher") .HasAnnotation("ProductVersion", "10.0.7") .HasAnnotation("Relational:MaxIdentifierLength", 128); SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); modelBuilder.Entity("CvMatcher.Data.Entities.AiPromptEntity", b => { b.Property("Key") .HasMaxLength(128) .HasColumnType("nvarchar(128)"); b.Property("Language") .HasMaxLength(8) .HasColumnType("nvarchar(8)"); b.Property("Description") .IsRequired() .ValueGeneratedOnAdd() .HasMaxLength(500) .HasColumnType("nvarchar(500)") .HasDefaultValue(""); b.Property("UpdatedAt") .ValueGeneratedOnAdd() .HasColumnType("datetime2") .HasDefaultValueSql("SYSUTCDATETIME()"); b.Property("Value") .IsRequired() .HasColumnType("nvarchar(max)"); b.HasKey("Key", "Language"); b.ToTable("AiPrompts", "cvMatcher"); }); modelBuilder.Entity("CvMatcher.Data.Entities.CvMatchResultEntity", b => { b.Property("Id") .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("ClientIpAddress") .HasMaxLength(45) .HasColumnType("nvarchar(45)"); b.Property("CreatedAt") .ValueGeneratedOnAdd() .HasColumnType("datetime2") .HasDefaultValueSql("SYSUTCDATETIME()"); b.Property("CvDocumentId") .IsRequired() .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("Email") .HasMaxLength(256) .HasColumnType("nvarchar(256)"); b.Property("JobDocumentId") .IsRequired() .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("Language") .IsRequired() .HasColumnType("nvarchar(450)"); b.Property("ResultJson") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("Score") .HasColumnType("int"); b.HasKey("Id"); b.HasIndex("CvDocumentId", "JobDocumentId", "Language") .IsUnique(); b.ToTable("Results", "cvMatcher"); }); modelBuilder.Entity("CvMatcher.Data.Entities.CvMatcherChatCacheEntity", b => { b.Property("CacheKey") .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("CreatedAt") .ValueGeneratedOnAdd() .HasColumnType("datetime2") .HasDefaultValueSql("SYSUTCDATETIME()"); b.Property("Model") .IsRequired() .HasMaxLength(120) .HasColumnType("nvarchar(120)"); b.Property("ResponseText") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("Temperature") .HasColumnType("decimal(4,2)"); b.HasKey("CacheKey"); b.ToTable("ChatCache", "cvMatcher"); }); #pragma warning restore 612, 618 } } }