//
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
#nullable disable
namespace Webhook_4docs.Migrations
{
[DbContext(typeof(WebhookDbContext))]
[Migration("20240321221626_InitialCreate")]
partial class InitialCreate
{
///
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "7.0.17")
.HasAnnotation("Relational:MaxIdentifierLength", 63);
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
modelBuilder.Entity("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("Status")
.HasColumnType("text");
b.HasKey("InvoiceId");
b.ToTable("ProcessedInvoices");
});
#pragma warning restore 612, 618
}
}
}