using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace esuite.Database.SqlServer.Migrations
{
    /// <inheritdoc />
    public partial class AddedPrinterSpecificationsGlossary : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.InsertData(
                schema: "CustomFields",
                table: "CustomFields",
                columns: new[] { "Id", "DefaultValue", "Deleted", "FieldType", "Guid", "MaxEntries", "MinEntries", "Name" },
                values: new object[] { 1L, "", false, 7, new Guid("8d910089-3079-4a29-abad-8ddf82db6dbb"), 1L, 1L, "Print Specification Form Template" });

            migrationBuilder.InsertData(
                schema: "Glossaries",
                table: "Glossaries",
                columns: new[] { "Id", "Deleted", "Guid", "Name", "ParentId" },
                values: new object[] { 3L, false, new Guid("35eb8c23-4528-49a7-a798-b8bae3b06daf"), "Print Specifications", 1L });

            migrationBuilder.UpdateData(
                schema: "UserManager",
                table: "Users",
                keyColumn: "Id",
                keyValue: 1L,
                column: "Guid",
                value: new Guid("30cfcd5b-3385-43f1-b59a-fd35236f3d92"));

            migrationBuilder.InsertData(
                schema: "Glossaries",
                table: "GlossaryCustomFields",
                columns: new[] { "Id", "CustomFieldId", "GlossaryId" },
                values: new object[] { 1L, 1L, 3L });
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DeleteData(
                schema: "Glossaries",
                table: "GlossaryCustomFields",
                keyColumn: "Id",
                keyValue: 1L);

            migrationBuilder.DeleteData(
                schema: "CustomFields",
                table: "CustomFields",
                keyColumn: "Id",
                keyValue: 1L);

            migrationBuilder.DeleteData(
                schema: "Glossaries",
                table: "Glossaries",
                keyColumn: "Id",
                keyValue: 3L);

            migrationBuilder.UpdateData(
                schema: "UserManager",
                table: "Users",
                keyColumn: "Id",
                keyValue: 1L,
                column: "Guid",
                value: new Guid("9f0a5037-44a9-45cf-8025-d5ae65f5f9b9"));
        }
    }
}
