using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace CMSMicroservice.Infrastructure.Persistence.Migrations
{
    /// <inheritdoc />
    public partial class UpdateNetworkWeeklyBalanceWithCarryover : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<int>(
                name: "LeftLegCarryover",
                schema: "CMS",
                table: "NetworkWeeklyBalances",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "LeftLegNewMembers",
                schema: "CMS",
                table: "NetworkWeeklyBalances",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "LeftLegRemainder",
                schema: "CMS",
                table: "NetworkWeeklyBalances",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "LeftLegTotal",
                schema: "CMS",
                table: "NetworkWeeklyBalances",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "RightLegCarryover",
                schema: "CMS",
                table: "NetworkWeeklyBalances",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "RightLegNewMembers",
                schema: "CMS",
                table: "NetworkWeeklyBalances",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "RightLegRemainder",
                schema: "CMS",
                table: "NetworkWeeklyBalances",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "RightLegTotal",
                schema: "CMS",
                table: "NetworkWeeklyBalances",
                type: "int",
                nullable: false,
                defaultValue: 0);
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "LeftLegCarryover",
                schema: "CMS",
                table: "NetworkWeeklyBalances");

            migrationBuilder.DropColumn(
                name: "LeftLegNewMembers",
                schema: "CMS",
                table: "NetworkWeeklyBalances");

            migrationBuilder.DropColumn(
                name: "LeftLegRemainder",
                schema: "CMS",
                table: "NetworkWeeklyBalances");

            migrationBuilder.DropColumn(
                name: "LeftLegTotal",
                schema: "CMS",
                table: "NetworkWeeklyBalances");

            migrationBuilder.DropColumn(
                name: "RightLegCarryover",
                schema: "CMS",
                table: "NetworkWeeklyBalances");

            migrationBuilder.DropColumn(
                name: "RightLegNewMembers",
                schema: "CMS",
                table: "NetworkWeeklyBalances");

            migrationBuilder.DropColumn(
                name: "RightLegRemainder",
                schema: "CMS",
                table: "NetworkWeeklyBalances");

            migrationBuilder.DropColumn(
                name: "RightLegTotal",
                schema: "CMS",
                table: "NetworkWeeklyBalances");
        }
    }
}
