using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace PowderCoating.Infrastructure.Migrations
{
    /// <inheritdoc />
    public partial class AddQuoteTemplateToCompanyPreferences : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<string>(
                name: "QtAccentColor",
                table: "CompanyPreferences",
                type: "nvarchar(max)",
                nullable: false,
                defaultValue: "");

            migrationBuilder.AddColumn<string>(
                name: "QtDefaultTerms",
                table: "CompanyPreferences",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "QtFooterNote",
                table: "CompanyPreferences",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<bool>(
                name: "QtShowDetailedBreakdown",
                table: "CompanyPreferences",
                type: "bit",
                nullable: false,
                defaultValue: false);

            migrationBuilder.AddColumn<bool>(
                name: "QtShowPreparedBy",
                table: "CompanyPreferences",
                type: "bit",
                nullable: false,
                defaultValue: false);

            migrationBuilder.UpdateData(
                table: "PricingTiers",
                keyColumn: "Id",
                keyValue: 1,
                column: "CreatedAt",
                value: new DateTime(2026, 3, 4, 1, 41, 22, 436, DateTimeKind.Utc).AddTicks(3124));

            migrationBuilder.UpdateData(
                table: "PricingTiers",
                keyColumn: "Id",
                keyValue: 2,
                column: "CreatedAt",
                value: new DateTime(2026, 3, 4, 1, 41, 22, 436, DateTimeKind.Utc).AddTicks(3129));

            migrationBuilder.UpdateData(
                table: "PricingTiers",
                keyColumn: "Id",
                keyValue: 3,
                column: "CreatedAt",
                value: new DateTime(2026, 3, 4, 1, 41, 22, 436, DateTimeKind.Utc).AddTicks(3130));
        }

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

            migrationBuilder.DropColumn(
                name: "QtDefaultTerms",
                table: "CompanyPreferences");

            migrationBuilder.DropColumn(
                name: "QtFooterNote",
                table: "CompanyPreferences");

            migrationBuilder.DropColumn(
                name: "QtShowDetailedBreakdown",
                table: "CompanyPreferences");

            migrationBuilder.DropColumn(
                name: "QtShowPreparedBy",
                table: "CompanyPreferences");

            migrationBuilder.UpdateData(
                table: "PricingTiers",
                keyColumn: "Id",
                keyValue: 1,
                column: "CreatedAt",
                value: new DateTime(2026, 3, 2, 0, 34, 29, 759, DateTimeKind.Utc).AddTicks(1703));

            migrationBuilder.UpdateData(
                table: "PricingTiers",
                keyColumn: "Id",
                keyValue: 2,
                column: "CreatedAt",
                value: new DateTime(2026, 3, 2, 0, 34, 29, 759, DateTimeKind.Utc).AddTicks(1710));

            migrationBuilder.UpdateData(
                table: "PricingTiers",
                keyColumn: "Id",
                keyValue: 3,
                column: "CreatedAt",
                value: new DateTime(2026, 3, 2, 0, 34, 29, 759, DateTimeKind.Utc).AddTicks(1711));
        }
    }
}
