using System;
using Microsoft.EntityFrameworkCore.Migrations;
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
#nullable disable
namespace Webhook_4docs.Migrations
{
///
public partial class InitialCreate : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "ProcessedInvoices",
columns: table => new
{
InvoiceId = table.Column(type: "integer", nullable: false)
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
DateTimeProcessed = table.Column(type: "timestamp with time zone", nullable: false),
Status = table.Column(type: "text", nullable: true),
InvoicePath = table.Column(type: "text", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_ProcessedInvoices", x => x.InvoiceId);
});
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "ProcessedInvoices");
}
}
}