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