56 lines
2.7 KiB
C#
56 lines
2.7 KiB
C#
using System;
|
|
using System.Numerics;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace ComplianceNFs.Infrastructure.Repositories.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class InitialCreate : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.CreateTable(
|
|
name: "EnergyInvoices",
|
|
columns: table => new
|
|
{
|
|
MailId = table.Column<string>(type: "text", nullable: false),
|
|
ConversationId = table.Column<string>(type: "text", nullable: false),
|
|
SupplierEmail = table.Column<string>(type: "text", nullable: false),
|
|
ReceivedDate = table.Column<DateTime>(type: "timestamp with time zone", nullable: false),
|
|
InvoiceId = table.Column<int>(type: "integer", nullable: false),
|
|
Filename = table.Column<string>(type: "text", nullable: false),
|
|
Md5 = table.Column<string>(type: "text", nullable: true),
|
|
CnpjComp = table.Column<string>(type: "text", nullable: true),
|
|
CnpjVend = table.Column<string>(type: "text", nullable: true),
|
|
MontNF = table.Column<decimal>(type: "numeric", nullable: true),
|
|
PrecNF = table.Column<decimal>(type: "numeric", nullable: true),
|
|
ValorSemImpostos = table.Column<decimal>(type: "numeric", nullable: true),
|
|
ValorFinalComImpostos = table.Column<decimal>(type: "numeric", nullable: true),
|
|
RsComp = table.Column<string>(type: "text", nullable: true),
|
|
RsVend = table.Column<string>(type: "text", nullable: true),
|
|
NumeroNF = table.Column<string>(type: "text", nullable: true),
|
|
IcmsNF = table.Column<decimal>(type: "numeric", nullable: true),
|
|
UfComp = table.Column<string>(type: "text", nullable: true),
|
|
UfVend = table.Column<string>(type: "text", nullable: true),
|
|
MatchedCodTE = table.Column<BigInteger>(type: "numeric", nullable: true),
|
|
Status = table.Column<int>(type: "integer", nullable: false),
|
|
DiscrepancyNotes = table.Column<string>(type: "text", nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_EnergyInvoices", x => x.MailId);
|
|
});
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropTable(
|
|
name: "EnergyInvoices");
|
|
}
|
|
}
|
|
}
|