using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace FinlyticSimulation.Migrations
{
///
public partial class AddStrategyParameterProfiles : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "simulation_strategy_parameters",
columns: table => new
{
Isin = table.Column(type: "character varying(20)", maxLength: 20, nullable: false),
StrategyKey = table.Column(type: "character varying(50)", maxLength: 50, nullable: false),
Parameters = table.Column(type: "jsonb", nullable: false),
UpdatedAtUtc = table.Column(type: "timestamp with time zone", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_simulation_strategy_parameters", x => new { x.Isin, x.StrategyKey });
});
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "simulation_strategy_parameters");
}
}
}