using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace DXApp.TemplateKitProject.Migrations { /// public partial class InitialCreate : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "ZugferdInvoices", columns: table => new { Id = table.Column(type: "int", nullable: false) .Annotation("SqlServer:Identity", "1, 1"), InvoiceNumber = table.Column(type: "nvarchar(max)", nullable: true), InvoiceDate = table.Column(type: "datetime2", nullable: false), SellerName = table.Column(type: "nvarchar(max)", nullable: true), SellerTaxId = table.Column(type: "nvarchar(max)", nullable: true), BuyerName = table.Column(type: "nvarchar(max)", nullable: true), TotalAmount = table.Column(type: "decimal(18,2)", nullable: false), TaxAmount = table.Column(type: "decimal(18,2)", nullable: false), CurrencyCode = table.Column(type: "nvarchar(max)", nullable: true), Iban = table.Column(type: "nvarchar(max)", nullable: true), RawXml = table.Column(type: "nvarchar(max)", nullable: true), ImportedAt = table.Column(type: "datetime2", nullable: false), SourceType = table.Column(type: "nvarchar(max)", nullable: true) }, constraints: table => { table.PrimaryKey("PK_ZugferdInvoices", x => x.Id); }); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "ZugferdInvoices"); } } }