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