using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

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

            migrationBuilder.AddColumn<decimal>(
                name: "BlastRateSqFtPerHourOverride",
                table: "CompanyOperatingCosts",
                type: "decimal(18,2)",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "BlastSetupType",
                table: "CompanyOperatingCosts",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "CoatingGunType",
                table: "CompanyOperatingCosts",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<decimal>(
                name: "CoatingRateSqFtPerHourOverride",
                table: "CompanyOperatingCosts",
                type: "decimal(18,2)",
                nullable: true);

            migrationBuilder.AddColumn<decimal>(
                name: "CompressorCfm",
                table: "CompanyOperatingCosts",
                type: "decimal(18,2)",
                nullable: false,
                defaultValue: 0m);

            migrationBuilder.AddColumn<int>(
                name: "PrimaryBlastSubstrate",
                table: "CompanyOperatingCosts",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "ShopCapabilityTier",
                table: "CompanyOperatingCosts",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.UpdateData(
                table: "PricingTiers",
                keyColumn: "Id",
                keyValue: 1,
                column: "CreatedAt",
                value: new DateTime(2026, 4, 20, 23, 36, 6, 44, DateTimeKind.Utc).AddTicks(591));

            migrationBuilder.UpdateData(
                table: "PricingTiers",
                keyColumn: "Id",
                keyValue: 2,
                column: "CreatedAt",
                value: new DateTime(2026, 4, 20, 23, 36, 6, 44, DateTimeKind.Utc).AddTicks(597));

            migrationBuilder.UpdateData(
                table: "PricingTiers",
                keyColumn: "Id",
                keyValue: 3,
                column: "CreatedAt",
                value: new DateTime(2026, 4, 20, 23, 36, 6, 44, DateTimeKind.Utc).AddTicks(599));
        }

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

            migrationBuilder.DropColumn(
                name: "BlastRateSqFtPerHourOverride",
                table: "CompanyOperatingCosts");

            migrationBuilder.DropColumn(
                name: "BlastSetupType",
                table: "CompanyOperatingCosts");

            migrationBuilder.DropColumn(
                name: "CoatingGunType",
                table: "CompanyOperatingCosts");

            migrationBuilder.DropColumn(
                name: "CoatingRateSqFtPerHourOverride",
                table: "CompanyOperatingCosts");

            migrationBuilder.DropColumn(
                name: "CompressorCfm",
                table: "CompanyOperatingCosts");

            migrationBuilder.DropColumn(
                name: "PrimaryBlastSubstrate",
                table: "CompanyOperatingCosts");

            migrationBuilder.DropColumn(
                name: "ShopCapabilityTier",
                table: "CompanyOperatingCosts");

            migrationBuilder.UpdateData(
                table: "PricingTiers",
                keyColumn: "Id",
                keyValue: 1,
                column: "CreatedAt",
                value: new DateTime(2026, 4, 19, 21, 52, 59, 416, DateTimeKind.Utc).AddTicks(772));

            migrationBuilder.UpdateData(
                table: "PricingTiers",
                keyColumn: "Id",
                keyValue: 2,
                column: "CreatedAt",
                value: new DateTime(2026, 4, 19, 21, 52, 59, 416, DateTimeKind.Utc).AddTicks(778));

            migrationBuilder.UpdateData(
                table: "PricingTiers",
                keyColumn: "Id",
                keyValue: 3,
                column: "CreatedAt",
                value: new DateTime(2026, 4, 19, 21, 52, 59, 416, DateTimeKind.Utc).AddTicks(779));
        }
    }
}
