// using System; using CvSearch.Models.Data; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; #nullable disable namespace CvSearch.Models.Migrations { [DbContext(typeof(CvSearchDbContext))] partial class CvSearchDbContextModelSnapshot : ModelSnapshot { protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasDefaultSchema("cvSearch") .HasAnnotation("ProductVersion", "10.0.7") .HasAnnotation("Relational:MaxIdentifierLength", 128); SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); modelBuilder.Entity("CvSearch.Models.Data.Entities.JobSearchResultEntity", b => { b.Property("Id") .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("CreatedAt") .ValueGeneratedOnAdd() .HasColumnType("datetime2") .HasDefaultValueSql("SYSUTCDATETIME()"); b.Property("JobText") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("JobTitle") .IsRequired() .HasMaxLength(512) .HasColumnType("nvarchar(512)"); b.Property("JobUrl") .IsRequired() .HasMaxLength(2048) .HasColumnType("nvarchar(2048)"); b.Property("ProviderName") .IsRequired() .HasMaxLength(128) .HasColumnType("nvarchar(128)"); b.Property("ResultJson") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("Score") .HasColumnType("int"); b.Property("SessionId") .IsRequired() .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.HasKey("Id"); b.HasIndex("SessionId"); b.ToTable("JobSearchResults", "cvSearch"); }); modelBuilder.Entity("CvSearch.Models.Data.Entities.JobSearchSessionEntity", b => { b.Property("Id") .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("CreatedAt") .ValueGeneratedOnAdd() .HasColumnType("datetime2") .HasDefaultValueSql("SYSUTCDATETIME()"); b.Property("CvDocumentId") .IsRequired() .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("Email") .IsRequired() .HasMaxLength(256) .HasColumnType("nvarchar(256)"); b.Property("Keywords") .IsRequired() .HasMaxLength(1000) .HasColumnType("nvarchar(1000)"); b.Property("ProviderConfigJson") .HasColumnType("nvarchar(max)"); b.Property("Status") .IsRequired() .HasMaxLength(32) .HasColumnType("nvarchar(32)"); b.Property("TokenId") .IsRequired() .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.HasKey("Id"); b.HasIndex("Status"); b.ToTable("JobSearchSessions", "cvSearch"); }); modelBuilder.Entity("CvSearch.Models.Data.Entities.JobSearchTokenEntity", b => { b.Property("Id") .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("CreatedAt") .ValueGeneratedOnAdd() .HasColumnType("datetime2") .HasDefaultValueSql("SYSUTCDATETIME()"); b.Property("CvDocumentId") .IsRequired() .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("Email") .IsRequired() .HasMaxLength(256) .HasColumnType("nvarchar(256)"); b.Property("ExpiresAt") .HasColumnType("datetime2"); b.Property("Used") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false); b.HasKey("Id"); b.ToTable("JobSearchTokens", "cvSearch"); }); #pragma warning restore 612, 618 } } }