Files
Accounting/Accounting.DAL/Migrations/20240429161713_Initial.cs

41 lines
1.5 KiB
C#

using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Accounting.Migrations
{
/// <inheritdoc />
public partial class Initial : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "AccountRecords",
columns: table => new
{
Id = table.Column<int>(type: "int", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
BetalDatum = table.Column<DateTime>(type: "datetime2", nullable: false),
Mottagare = table.Column<string>(type: "nvarchar(max)", nullable: false),
Konto = table.Column<string>(type: "nvarchar(max)", nullable: false),
Belopp = table.Column<double>(type: "float", nullable: false),
Avisering = table.Column<string>(type: "nvarchar(max)", nullable: false),
Stored = table.Column<DateTime>(type: "datetime2", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_AccountRecords", x => x.Id);
});
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "AccountRecords");
}
}
}