Files
silver-octo-spoon/wolverine/a-frame-architecture/FinancialApi.Infrastructure/Migrations/20260713152041_InitialCreate.cs
T
brianj bf16b7b807 Added all projects
We are almost working.
2026-07-13 17:29:43 +02:00

46 lines
1.4 KiB
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
#pragma warning disable CA1814 // Prefer jagged arrays over multidimensional
namespace FinancialApi.Infrastructure.Migrations
{
/// <inheritdoc />
public partial class InitialCreate : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "Accounts",
columns: table => new
{
Id = table.Column<int>(type: "INTEGER", nullable: false)
.Annotation("Sqlite:Autoincrement", true),
Balance = table.Column<decimal>(type: "TEXT", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_Accounts", x => x.Id);
});
migrationBuilder.InsertData(
table: "Accounts",
columns: new[] { "Id", "Balance" },
values: new object[,]
{
{ 1, 100.00m },
{ 2, 500.00m }
});
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "Accounts");
}
}
}