/
afanasevn
/
PdfEncoder
Обзор
Документация
Войти
/
afanasevn
/
PdfEncoder
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/PdfEncoder.Infrastructure/Migrations/PdfEncoderDbContextModelSnapshot.cs
195 строк
7 KB
IBS\NAfanasev
Full async product flow
01 июл 2026, 17:49
01 июл 2026, 17:49
d25833e
Код
Авторство
О чём код?
// <auto-generated /> using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; using PdfEncoder.Infrastructure.Persistence; #nullable disable namespace PdfEncoder.Infrastructure.Migrations { [DbContext(typeof(PdfEncoderDbContext))] partial class PdfEncoderDbContextModelSnapshot : ModelSnapshot { protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "10.0.0") .HasAnnotation("Relational:MaxIdentifierLength", 63); NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); modelBuilder.Entity("PdfEncoder.Infrastructure.Persistence.Entities.DocumentJobEntity", b => { b.Property<Guid>("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property<DateTime?>("CompletedAt") .HasColumnType("timestamp with time zone"); b.Property<string>("ContentHash") .IsRequired() .HasMaxLength(64) .HasColumnType("character varying(64)"); b.Property<DateTime>("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property<string>("DocumentType") .IsRequired() .HasMaxLength(64) .HasColumnType("character varying(64)"); b.Property<string>("ErrorCode") .HasMaxLength(64) .HasColumnType("character varying(64)"); b.Property<string>("ErrorMessage") .HasMaxLength(2000) .HasColumnType("character varying(2000)"); b.Property<long>("FileSizeBytes") .HasColumnType("bigint"); b.Property<string>("Language") .IsRequired() .HasMaxLength(8) .HasColumnType("character varying(8)"); b.Property<string>("OriginalFileName") .IsRequired() .HasMaxLength(512) .HasColumnType("character varying(512)"); b.Property<string>("PdfKind") .HasMaxLength(32) .HasColumnType("character varying(32)"); b.Property<DateTime?>("StartedAt") .HasColumnType("timestamp with time zone"); b.Property<string>("Status") .IsRequired() .HasMaxLength(32) .HasColumnType("character varying(32)"); b.HasKey("Id"); b.HasIndex("ContentHash") .IsUnique(); b.HasIndex("CreatedAt"); b.ToTable("document_jobs", (string)null); }); modelBuilder.Entity("PdfEncoder.Infrastructure.Persistence.Entities.LlmUsageLogEntity", b => { b.Property<Guid>("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property<int>("CompletionTokens") .HasColumnType("integer"); b.Property<DateTime>("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property<Guid>("DocumentJobId") .HasColumnType("uuid"); b.Property<int>("LatencyMs") .HasColumnType("integer"); b.Property<string>("ModelName") .IsRequired() .HasMaxLength(128) .HasColumnType("character varying(128)"); b.Property<int>("PromptTokens") .HasColumnType("integer"); b.Property<string>("StepName") .IsRequired() .HasMaxLength(64) .HasColumnType("character varying(64)"); b.HasKey("Id"); b.HasIndex("DocumentJobId"); b.ToTable("llm_usage_logs", (string)null); }); modelBuilder.Entity("PdfEncoder.Infrastructure.Persistence.Entities.ParseResultEntity", b => { b.Property<Guid>("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property<DateTime>("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property<string>("DetectedDocumentType") .IsRequired() .HasMaxLength(64) .HasColumnType("character varying(64)"); b.Property<Guid>("DocumentJobId") .HasColumnType("uuid"); b.Property<double>("OverallConfidence") .HasColumnType("double precision"); b.Property<string>("RawContextJson") .IsRequired() .HasColumnType("jsonb"); b.Property<string>("ResultJson") .IsRequired() .HasColumnType("jsonb"); b.HasKey("Id"); b.HasIndex("DocumentJobId") .IsUnique(); b.ToTable("parse_results", (string)null); }); modelBuilder.Entity("PdfEncoder.Infrastructure.Persistence.Entities.LlmUsageLogEntity", b => { b.HasOne("PdfEncoder.Infrastructure.Persistence.Entities.DocumentJobEntity", "DocumentJob") .WithMany("LlmUsageLogs") .HasForeignKey("DocumentJobId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("DocumentJob"); }); modelBuilder.Entity("PdfEncoder.Infrastructure.Persistence.Entities.ParseResultEntity", b => { b.HasOne("PdfEncoder.Infrastructure.Persistence.Entities.DocumentJobEntity", "DocumentJob") .WithOne("ParseResult") .HasForeignKey("PdfEncoder.Infrastructure.Persistence.Entities.ParseResultEntity", "DocumentJobId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("DocumentJob"); }); modelBuilder.Entity("PdfEncoder.Infrastructure.Persistence.Entities.DocumentJobEntity", b => { b.Navigation("LlmUsageLogs"); b.Navigation("ParseResult"); }); #pragma warning restore 612, 618 } } }