using System;
using Microsoft.EntityFrameworkCore.Migrations;
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;

#nullable disable

#pragma warning disable CA1814 // Prefer jagged arrays over multidimensional

namespace PARR.DAL.Migrations
{
    /// <inheritdoc />
    public partial class TblsEsppSch : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "EsppSchTypes",
                columns: table => new
                {
                    Id = table.Column<int>(type: "integer", nullable: false)
                        .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
                    Name = table.Column<string>(type: "text", nullable: false),
                    Description = table.Column<string>(type: "text", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_EsppSchTypes", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "EsppSchTypeSchedules",
                columns: table => new
                {
                    Id = table.Column<int>(type: "integer", nullable: false)
                        .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
                    Name = table.Column<string>(type: "text", nullable: false),
                    Description = table.Column<string>(type: "text", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_EsppSchTypeSchedules", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "EsppSchTypeValues",
                columns: table => new
                {
                    Id = table.Column<Guid>(type: "uuid", nullable: false),
                    DateCreated = table.Column<DateTimeOffset>(type: "timestamp with time zone", nullable: false),
                    Value = table.Column<string>(type: "text", nullable: false),
                    TypeId = table.Column<int>(type: "integer", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_EsppSchTypeValues", x => x.Id);
                    table.ForeignKey(
                        name: "FK_EsppSchTypeValues_EsppSchTypes_TypeId",
                        column: x => x.TypeId,
                        principalTable: "EsppSchTypes",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Cascade);
                });

            migrationBuilder.CreateTable(
                name: "EsppSchTypeConfigs",
                columns: table => new
                {
                    Id = table.Column<Guid>(type: "uuid", nullable: false),
                    DateCreated = table.Column<DateTimeOffset>(type: "timestamp with time zone", nullable: false),
                    DateModified = table.Column<DateTimeOffset>(type: "timestamp with time zone", nullable: true),
                    TypeScheduleId = table.Column<int>(type: "integer", nullable: false),
                    TypeId = table.Column<int>(type: "integer", nullable: false),
                    Order = table.Column<int>(type: "integer", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_EsppSchTypeConfigs", x => x.Id);
                    table.ForeignKey(
                        name: "FK_EsppSchTypeConfigs_EsppSchTypeSchedules_TypeScheduleId",
                        column: x => x.TypeScheduleId,
                        principalTable: "EsppSchTypeSchedules",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Cascade);
                    table.ForeignKey(
                        name: "FK_EsppSchTypeConfigs_EsppSchTypes_TypeId",
                        column: x => x.TypeId,
                        principalTable: "EsppSchTypes",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Cascade);
                });

            migrationBuilder.CreateTable(
                name: "EsppSchValues",
                columns: table => new
                {
                    ApplicationsInWorkId = table.Column<Guid>(type: "uuid", nullable: false),
                    TypeValueId = table.Column<Guid>(type: "uuid", nullable: false),
                    TypeConfigId = table.Column<Guid>(type: "uuid", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_EsppSchValues", x => new { x.ApplicationsInWorkId, x.TypeValueId, x.TypeConfigId });
                    table.ForeignKey(
                        name: "FK_EsppSchValues_ApplicationsInWorks_ApplicationsInWorkId",
                        column: x => x.ApplicationsInWorkId,
                        principalTable: "ApplicationsInWorks",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Cascade);
                    table.ForeignKey(
                        name: "FK_EsppSchValues_EsppSchTypeConfigs_TypeConfigId",
                        column: x => x.TypeConfigId,
                        principalTable: "EsppSchTypeConfigs",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Cascade);
                    table.ForeignKey(
                        name: "FK_EsppSchValues_EsppSchTypeValues_TypeValueId",
                        column: x => x.TypeValueId,
                        principalTable: "EsppSchTypeValues",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Cascade);
                });

            migrationBuilder.InsertData(
                table: "EsppSchTypeSchedules",
                columns: new[] { "Id", "Description", "Name" },
                values: new object[,]
                {
                    { 1, "Регулярно", "Regularly" },
                    { 2, "Еженежельно", "Weekly" },
                    { 3, "Ежемесячно", "Monthly" },
                    { 4, "Ежемесячно-2", "Monthly2" },
                    { 5, "Ежегодно", "Annually" },
                    { 6, "Ежегодно-2", "Annually2" }
                });

            migrationBuilder.InsertData(
                table: "EsppSchTypes",
                columns: new[] { "Id", "Description", "Name" },
                values: new object[,]
                {
                    { 1, "Через интервал", "Interval" },
                    { 2, "День недели: пнд, вт...", "DayOfWeek" },
                    { 3, "Число месяца: 1,2,3,4", "DayOfMonth" },
                    { 4, "Каждый: первый, второй, третий, четвертый, последний", "Order" },
                    { 5, "Месяц: январь, февраль...", "Month" },
                    { 6, "Месяц (родительный падеж): января, февраля...", "MonthGenitive" }
                });

            migrationBuilder.InsertData(
                table: "EsppSchTypeConfigs",
                columns: new[] { "Id", "DateCreated", "DateModified", "Order", "TypeId", "TypeScheduleId" },
                values: new object[,]
                {
                    { new Guid("006900b5-f65c-413e-bc67-09e6dae60b7c"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), null, 1, 3, 5 },
                    { new Guid("06b2e7aa-6927-4fbf-99fb-67c92a4fce8a"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), null, 0, 2, 2 },
                    { new Guid("162ffe73-2428-4abe-8f83-235c2593664c"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), null, 1, 2, 4 },
                    { new Guid("439460c2-deca-4b54-80e7-2f20806696ec"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), null, 1, 2, 6 },
                    { new Guid("5c63ad8c-e9b4-43fd-9d24-5c2eed80dadd"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), null, 2, 6, 6 },
                    { new Guid("78079071-ff80-417e-9bb0-d928cec853e7"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), null, 0, 3, 3 },
                    { new Guid("8470d1ef-165d-42fc-ab05-8203e4d263cf"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), null, 0, 5, 5 },
                    { new Guid("85635bc8-f17a-46b8-9c15-8615761be3d9"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), null, 0, 4, 6 },
                    { new Guid("accb1d46-e1c1-4396-9182-4c0766155921"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), null, 0, 4, 4 },
                    { new Guid("d2693562-b3eb-41e9-97db-c6b5d2ef1bea"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), null, 0, 1, 1 }
                });

            migrationBuilder.InsertData(
                table: "EsppSchTypeValues",
                columns: new[] { "Id", "DateCreated", "TypeId", "Value" },
                values: new object[,]
                {
                    { new Guid("032fbd02-67d0-4b8c-bed0-42629ab7113b"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 4, "Второй" },
                    { new Guid("035f485d-8451-47df-bfaa-ba4dd36cf146"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 1, "Каждые 4 часа" },
                    { new Guid("03858472-d4ce-47fd-9497-8051728766e4"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 3, "28" },
                    { new Guid("06a8bd2f-68e1-42f5-961c-ac3b98a2181e"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 6, "Апреля" },
                    { new Guid("06ab835d-3d3e-4057-8422-a553b6b40995"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 5, "Апрель" },
                    { new Guid("086f7a37-9848-423a-a3cc-36dbb5ad43e3"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 1, "Каждые полгода" },
                    { new Guid("0883aac2-9d5b-4098-b672-c684d2a3a0c9"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 5, "Сентябрь" },
                    { new Guid("0936aa99-73e0-43de-b6df-334c1228a226"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 3, "31" },
                    { new Guid("0b1f3cea-301a-4d74-9ce1-2cd93b41897d"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 6, "Августа" },
                    { new Guid("0da03db0-9404-425d-bea1-5da0c9b60b59"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 3, "3" },
                    { new Guid("12bb8db2-cf7f-4113-baff-6883770f1ba5"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 4, "Последний" },
                    { new Guid("18260e91-3fbe-4401-9edc-78dbc419370e"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 5, "Январь" },
                    { new Guid("199474c8-0a77-47e5-aab8-ba33c216cc9e"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 3, "4" },
                    { new Guid("220a1464-4d39-416c-b4b2-3093eb007298"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 3, "20" },
                    { new Guid("2905765d-63fb-41fe-a111-ee2f1d03d62e"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 3, "22" },
                    { new Guid("2c635ce2-fc18-47be-b3e9-98c211abf312"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 3, "17" },
                    { new Guid("2ed85534-4684-4eb2-9ccb-e264d212c945"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 2, "Пятница" },
                    { new Guid("2f473624-4eb3-49b4-a4b9-cc7fc08a50f5"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 6, "Января" },
                    { new Guid("2f476f70-b1ef-419d-aad5-3911f1e3231f"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 3, "16" },
                    { new Guid("361526aa-3e1c-452e-bb44-0ade8521830d"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 5, "Февраль" },
                    { new Guid("40d70d73-8582-4be6-a9e6-503b96ae3d49"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 3, "26" },
                    { new Guid("454788d6-d0ad-4c07-878c-da3fd3cd05e1"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 3, "25" },
                    { new Guid("4df04834-f14f-43d9-8984-334f080f4107"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 1, "Каждые 2 часа" },
                    { new Guid("4e3f73d1-a0f3-4dd1-bca9-68ada0dd5ce2"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 1, "Каждые 2 недели" },
                    { new Guid("4f4b249c-db60-4582-86ed-75cfee4edd0c"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 3, "19" },
                    { new Guid("554d7d0c-91b1-4b81-b94d-1ee864192962"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 3, "8" },
                    { new Guid("55833417-6a24-42f6-bcc2-5d032f883202"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 1, "Каждые 60 дней" },
                    { new Guid("5b4d7ca6-31e7-475b-b7c8-13c6680c3dc3"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 3, "2" },
                    { new Guid("5e6592bc-acb2-45a4-979b-fdecf8457453"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 5, "Октябрь" },
                    { new Guid("626ca076-f09e-4a7a-8610-b7de6337b24a"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 4, "Первый" },
                    { new Guid("6e3b5dd2-b2f7-40bc-bace-15bfa6bbd4ff"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 1, "Каждый час" },
                    { new Guid("6e9972c4-6bf7-4fe4-b4ea-bbb333fb69c8"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 5, "Август" },
                    { new Guid("7a004a11-32e1-40ae-ab35-0d3dc3a69785"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 3, "12" },
                    { new Guid("7ec056aa-820c-4900-96cb-4564d2ea6398"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 3, "7" },
                    { new Guid("7fefa052-29db-4ce5-9c57-2fd9ff855f21"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 1, "Каждые 80 дней" },
                    { new Guid("83f56b5d-b16b-4aa5-89d7-a253fee4e4ad"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 5, "Май" },
                    { new Guid("852a5ebd-4545-494b-bc69-c27409a41adc"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 6, "Декабря" },
                    { new Guid("8b7847a4-23de-4199-8aad-3b5c0323b5a2"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 3, "9" },
                    { new Guid("8dbd680c-ce49-4d2e-8a1a-05619685e240"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 3, "15" },
                    { new Guid("8df097aa-9860-4a62-9675-a8eecd3f2ce7"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 1, "Ежедневно" },
                    { new Guid("8f6610dc-ef46-4842-a57e-18d7aaa75931"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 3, "27" },
                    { new Guid("963b9c41-d607-444a-9fe0-fe429590e326"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 6, "Мая" },
                    { new Guid("9c5aaf48-88ec-4c67-b936-2be45550f8bf"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 3, "14" },
                    { new Guid("a1669207-aa31-40fe-98d0-d941008d1655"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 3, "30" },
                    { new Guid("a28b530f-ea38-4a2c-a16b-0b7fa3770d3c"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 3, "11" },
                    { new Guid("a6804315-96ef-484e-82ee-c5795694468b"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 2, "Суббота" },
                    { new Guid("a74b9ebd-bcd8-4537-b371-194de2fe0a4d"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 6, "Ноября" },
                    { new Guid("a8708763-c838-49a5-95fe-bf4f73518d71"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 3, "6" },
                    { new Guid("ae0a0015-0f1e-4496-b71e-6244f7e321e7"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 1, "Каждые 12 часов" },
                    { new Guid("b0ca99f9-5ee0-45b3-bb80-948f82b1fcb1"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 1, "Каждые 90 дней" },
                    { new Guid("b1018e07-e90e-42ee-b399-19f3d0c14dd6"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 3, "29" },
                    { new Guid("b7303461-9a30-43fa-8e55-305aa13f186f"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 2, "Понедельник" },
                    { new Guid("c1de4aca-9f49-48ae-9279-cf9ec4092112"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 6, "Октября" },
                    { new Guid("c34d5375-70e7-4632-b3af-30e279a0621a"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 2, "Среда" },
                    { new Guid("c887ca60-b05d-4d3c-ad1f-223c879b1a6d"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 3, "21" },
                    { new Guid("cf7b9645-52ed-43a2-8267-267e0aed19b1"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 3, "24" },
                    { new Guid("d2f90168-2b49-42f2-820b-79db2c522adf"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 4, "Четвертый" },
                    { new Guid("d439808a-6a10-409b-8809-a755b7cca60b"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 5, "Июль" },
                    { new Guid("d627daa7-3eed-4571-acae-ffbb3c5bedb9"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 1, "Каждые 6 часов" },
                    { new Guid("dab6e3f9-2385-4966-b77c-133ad233c592"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 1, "Каждые 3 часа" },
                    { new Guid("dbbe704a-8d6d-40e7-bd30-6974035b1fab"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 3, "23" },
                    { new Guid("dd695fb2-4ad0-4cda-a4df-e15059c56b24"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 5, "Декабрь" },
                    { new Guid("dee32e60-c1a1-4206-98bc-aa03deabfdf6"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 1, "Каждые 72 часа" },
                    { new Guid("e0465fbf-e3a5-4486-9f53-5bb85c6feeca"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 1, "Каждые 98 часов" },
                    { new Guid("e0f2f4d1-4a5e-4997-8336-83c3c35f38df"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 3, "13" },
                    { new Guid("e15c7c63-e29f-41a3-9c82-f70eb6c24fde"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 6, "Июля" },
                    { new Guid("e2fa3769-f66f-4753-a161-35adad7717a5"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 6, "Сентября" },
                    { new Guid("e6619da1-f7e8-45b9-bbd3-9c17bec2ccd3"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 3, "5" },
                    { new Guid("e679ec84-a9ee-4bed-a051-2b14edddcb18"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 5, "Июнь" },
                    { new Guid("e86adbfb-3345-4e0c-aa3b-b4418f9cfe88"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 3, "1" },
                    { new Guid("e951135e-71f2-4262-9342-df4d5315ab6c"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 2, "Вторник" },
                    { new Guid("eb71e699-937f-4894-9688-f7a7f95e5e58"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 2, "Воскресенье" },
                    { new Guid("ec8554c8-dee4-49a1-b1b7-474ad8ec1473"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 6, "Июня" },
                    { new Guid("ec9540df-c2de-4bda-a063-34d02d4b6e03"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 2, "Четверг" },
                    { new Guid("edd7cb49-d6a0-4969-b2d6-1967da69b336"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 5, "Ноябрь" },
                    { new Guid("f0003490-a249-44bd-814f-4566999915d8"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 6, "Февраля" },
                    { new Guid("f2da9e02-d619-4517-a598-374880a8c8e8"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 1, "Каждые 1,5 года" },
                    { new Guid("f38d7d30-8923-4ea0-aa7c-5b251e19ab61"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 1, "Каждые 3 года" },
                    { new Guid("f4c3fe38-aeaa-42f7-a9ba-190ea2dfe339"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 6, "Марта" },
                    { new Guid("f9d5b03b-624a-4f9f-8da3-1490ea5d2914"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 3, "18" },
                    { new Guid("fa8a8f60-e41e-495e-ac86-35174d9976bf"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 4, "Третий" },
                    { new Guid("fad4bdb0-6c51-4810-a30b-6d031a0d4c46"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 5, "Март" },
                    { new Guid("fb7f41ca-950b-4dc1-a0a6-bd9a221ab2ad"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 3, "10" }
                });

            migrationBuilder.CreateIndex(
                name: "IX_EsppSchTypeConfigs_TypeId",
                table: "EsppSchTypeConfigs",
                column: "TypeId");

            migrationBuilder.CreateIndex(
                name: "IX_EsppSchTypeConfigs_TypeScheduleId_TypeId",
                table: "EsppSchTypeConfigs",
                columns: new[] { "TypeScheduleId", "TypeId" },
                unique: true);

            migrationBuilder.CreateIndex(
                name: "IX_EsppSchTypeValues_TypeId",
                table: "EsppSchTypeValues",
                column: "TypeId");

            migrationBuilder.CreateIndex(
                name: "IX_EsppSchValues_TypeConfigId",
                table: "EsppSchValues",
                column: "TypeConfigId");

            migrationBuilder.CreateIndex(
                name: "IX_EsppSchValues_TypeValueId",
                table: "EsppSchValues",
                column: "TypeValueId");
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "EsppSchValues");

            migrationBuilder.DropTable(
                name: "EsppSchTypeConfigs");

            migrationBuilder.DropTable(
                name: "EsppSchTypeValues");

            migrationBuilder.DropTable(
                name: "EsppSchTypeSchedules");

            migrationBuilder.DropTable(
                name: "EsppSchTypes");
        }
    }
}
