using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace PowderCoating.Infrastructure.Migrations
{
    /// <inheritdoc />
    public partial class AddNotificationAndContactIndexes : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.UpdateData(
                table: "PricingTiers",
                keyColumn: "Id",
                keyValue: 1,
                column: "CreatedAt",
                value: new DateTime(2026, 6, 14, 1, 21, 46, 131, DateTimeKind.Utc).AddTicks(4191));

            migrationBuilder.UpdateData(
                table: "PricingTiers",
                keyColumn: "Id",
                keyValue: 2,
                column: "CreatedAt",
                value: new DateTime(2026, 6, 14, 1, 21, 46, 131, DateTimeKind.Utc).AddTicks(4196));

            migrationBuilder.UpdateData(
                table: "PricingTiers",
                keyColumn: "Id",
                keyValue: 3,
                column: "CreatedAt",
                value: new DateTime(2026, 6, 14, 1, 21, 46, 131, DateTimeKind.Utc).AddTicks(4197));

            migrationBuilder.CreateIndex(
                name: "IX_InAppNotifications_CompanyId_IsDeleted_CreatedAt",
                table: "InAppNotifications",
                columns: new[] { "CompanyId", "IsDeleted", "CreatedAt" });

            migrationBuilder.CreateIndex(
                name: "IX_InAppNotifications_CompanyId_IsDeleted_IsRead",
                table: "InAppNotifications",
                columns: new[] { "CompanyId", "IsDeleted", "IsRead" });

            migrationBuilder.CreateIndex(
                name: "IX_ContactSubmissions_CompanyId_IsDeleted_CreatedAt",
                table: "ContactSubmissions",
                columns: new[] { "CompanyId", "IsDeleted", "CreatedAt" });
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropIndex(
                name: "IX_InAppNotifications_CompanyId_IsDeleted_CreatedAt",
                table: "InAppNotifications");

            migrationBuilder.DropIndex(
                name: "IX_InAppNotifications_CompanyId_IsDeleted_IsRead",
                table: "InAppNotifications");

            migrationBuilder.DropIndex(
                name: "IX_ContactSubmissions_CompanyId_IsDeleted_CreatedAt",
                table: "ContactSubmissions");

            migrationBuilder.UpdateData(
                table: "PricingTiers",
                keyColumn: "Id",
                keyValue: 1,
                column: "CreatedAt",
                value: new DateTime(2026, 6, 10, 16, 17, 57, 120, DateTimeKind.Utc).AddTicks(9129));

            migrationBuilder.UpdateData(
                table: "PricingTiers",
                keyColumn: "Id",
                keyValue: 2,
                column: "CreatedAt",
                value: new DateTime(2026, 6, 10, 16, 17, 57, 120, DateTimeKind.Utc).AddTicks(9137));

            migrationBuilder.UpdateData(
                table: "PricingTiers",
                keyColumn: "Id",
                keyValue: 3,
                column: "CreatedAt",
                value: new DateTime(2026, 6, 10, 16, 17, 57, 120, DateTimeKind.Utc).AddTicks(9138));
        }
    }
}
