using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace Marathon.Infrastructure.Migrations { /// public partial class AddSavedStrategies : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "SavedStrategies", columns: table => new { Id = table.Column(type: "TEXT", nullable: false), Name = table.Column(type: "TEXT", nullable: false, collation: "NOCASE"), StartingBankroll = table.Column(type: "TEXT", nullable: false), MinScore = table.Column(type: "TEXT", nullable: false), StakeRule = table.Column(type: "INTEGER", nullable: false), FlatStake = table.Column(type: "TEXT", nullable: false), PercentOfBankroll = table.Column(type: "TEXT", nullable: false), KellyFraction = table.Column(type: "TEXT", nullable: false), CreatedAt = table.Column(type: "TEXT", nullable: false) }, constraints: table => { table.PrimaryKey("PK_SavedStrategies", x => x.Id); }); migrationBuilder.CreateIndex( name: "IX_SavedStrategies_Name", table: "SavedStrategies", column: "Name", unique: true); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "SavedStrategies"); } } }