DRAB/Drab.LocalDb/Migrations/20211101180516_Initial.cs
2025-07-11 00:18:14 +02:00

36 lines
1.3 KiB
C#

using System;
using Microsoft.EntityFrameworkCore.Migrations;
namespace Drab.LocalDb.Migrations
{
public partial class Initial : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "Orders",
columns: table => new
{
OrderId = table.Column<long>(type: "INTEGER", nullable: false)
.Annotation("Sqlite:Autoincrement", true),
DokId = table.Column<long>(type: "INTEGER", nullable: false),
Created = table.Column<DateTime>(type: "TEXT", nullable: false),
IsPrinted = table.Column<bool>(type: "INTEGER", nullable: false),
Filename = table.Column<string>(type: "TEXT", nullable: true),
Shop = table.Column<string>(type: "TEXT", nullable: true),
OrderNumber = table.Column<string>(type: "TEXT", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_Orders", x => x.OrderId);
});
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "Orders");
}
}
}