// using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; using Webhook_4docs; #nullable disable namespace Webhook_4docs.Migrations { [DbContext(typeof(WebhookDbContext))] [Migration("20260227164052_AddJsonBodyToProcessedInvoices")] partial class AddJsonBodyToProcessedInvoices { /// protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "9.0.0") .HasAnnotation("Relational:MaxIdentifierLength", 63); NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); modelBuilder.Entity("Webhook_4docs.ProcessedInvoices", b => { b.Property("InvoiceId") .ValueGeneratedOnAdd() .HasColumnType("integer"); NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("InvoiceId")); b.Property("DateTimeProcessed") .HasColumnType("timestamp with time zone"); b.Property("InvoicePath") .HasColumnType("text"); b.Property("JsonBody") .HasColumnType("jsonb"); b.Property("Status") .HasColumnType("text"); b.HasKey("InvoiceId"); b.ToTable("ProcessedInvoices"); }); #pragma warning restore 612, 618 } } }