Files
StockHistory/StockHistory/Migrations/20260422153418_InitialCreate.cs
2026-04-25 12:19:04 +02:00

43 lines
1.6 KiB
C#

using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace StockHistory.Migrations
{
/// <inheritdoc />
public partial class InitialCreate : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "TransactionNotes",
columns: table => new
{
Id = table.Column<int>(type: "INTEGER", nullable: false)
.Annotation("Sqlite:Autoincrement", true),
TransactionDate = table.Column<DateTime>(type: "TEXT", nullable: false),
TransactionType = table.Column<string>(type: "TEXT", nullable: true),
StockCode = table.Column<string>(type: "TEXT", nullable: true),
StockPrice = table.Column<decimal>(type: "TEXT", nullable: false),
StockQuantity = table.Column<int>(type: "INTEGER", nullable: false),
TotalAmount = table.Column<decimal>(type: "TEXT", nullable: false),
Commission = table.Column<decimal>(type: "TEXT", nullable: false),
AmountToPay = table.Column<decimal>(type: "TEXT", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_TransactionNotes", x => x.Id);
});
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "TransactionNotes");
}
}
}