using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace WinFormDiApp.DAL.Migrations
{
///
public partial class Initial : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "AccountRecords",
columns: table => new
{
Id = table.Column(type: "INTEGER", nullable: false)
.Annotation("Sqlite:Autoincrement", true),
BetalDatum = table.Column(type: "TEXT", nullable: false),
Mottagare = table.Column(type: "TEXT", nullable: false),
Konto = table.Column(type: "TEXT", nullable: false),
Belopp = table.Column(type: "REAL", nullable: false),
Avisering = table.Column(type: "TEXT", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_AccountRecords", x => x.Id);
});
migrationBuilder.CreateTable(
name: "Members",
columns: table => new
{
Id = table.Column(type: "INTEGER", nullable: false)
.Annotation("Sqlite:Autoincrement", true),
FirstName = table.Column(type: "TEXT", nullable: false),
LastName = table.Column(type: "TEXT", nullable: false),
NickName = table.Column(type: "TEXT", nullable: false),
PersonType = table.Column(type: "TEXT", nullable: false),
Email = table.Column(type: "TEXT", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_Members", x => x.Id);
});
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "AccountRecords");
migrationBuilder.DropTable(
name: "Members");
}
}
}