using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Predictalytics.Infrastructure.Migrations
{
    /// <inheritdoc />
    public partial class AddRiskAdjustedMetrics : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<int>(
                name: "LongestLosingStreakDays",
                table: "TraderAnalytics",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<decimal>(
                name: "MaxDrawdownUsd",
                table: "TraderAnalytics",
                type: "decimal(65,30)",
                nullable: false,
                defaultValue: 0m);

            migrationBuilder.AddColumn<decimal>(
                name: "PnlVolatilityUsd",
                table: "TraderAnalytics",
                type: "decimal(65,30)",
                nullable: false,
                defaultValue: 0m);
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "LongestLosingStreakDays",
                table: "TraderAnalytics");

            migrationBuilder.DropColumn(
                name: "MaxDrawdownUsd",
                table: "TraderAnalytics");

            migrationBuilder.DropColumn(
                name: "PnlVolatilityUsd",
                table: "TraderAnalytics");
        }
    }
}
