using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace SolutionErp.Infrastructure.Persistence.Migrations
{
    /// <inheritdoc />
    public partial class AddPurchaseEvaluations : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "PurchaseEvaluations",
                columns: table => new
                {
                    Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
                    MaPhieu = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
                    Type = table.Column<int>(type: "int", nullable: false),
                    Phase = table.Column<int>(type: "int", nullable: false),
                    TenGoiThau = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: false),
                    ProjectId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
                    DepartmentId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
                    DrafterUserId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
                    DiaDiem = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true),
                    MoTa = table.Column<string>(type: "nvarchar(2000)", maxLength: 2000, nullable: true),
                    WorkflowDefinitionId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
                    SlaDeadline = table.Column<DateTime>(type: "datetime2", nullable: true),
                    SlaWarningSent = table.Column<bool>(type: "bit", nullable: false),
                    SelectedSupplierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
                    PaymentTerms = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    ContractId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
                    CreatedAt = table.Column<DateTime>(type: "datetime2", nullable: false),
                    UpdatedAt = table.Column<DateTime>(type: "datetime2", nullable: true),
                    CreatedBy = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
                    UpdatedBy = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
                    IsDeleted = table.Column<bool>(type: "bit", nullable: false),
                    DeletedAt = table.Column<DateTime>(type: "datetime2", nullable: true),
                    DeletedBy = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_PurchaseEvaluations", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "PurchaseEvaluationWorkflowDefinitions",
                columns: table => new
                {
                    Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
                    Code = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: false),
                    Version = table.Column<int>(type: "int", nullable: false),
                    EvaluationType = table.Column<int>(type: "int", nullable: false),
                    Name = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: false),
                    Description = table.Column<string>(type: "nvarchar(1000)", maxLength: 1000, nullable: true),
                    IsActive = table.Column<bool>(type: "bit", nullable: false),
                    ActivatedAt = table.Column<DateTime>(type: "datetime2", nullable: true),
                    CreatedAt = table.Column<DateTime>(type: "datetime2", nullable: false),
                    UpdatedAt = table.Column<DateTime>(type: "datetime2", nullable: true),
                    CreatedBy = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
                    UpdatedBy = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_PurchaseEvaluationWorkflowDefinitions", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "PurchaseEvaluationApprovals",
                columns: table => new
                {
                    Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
                    PurchaseEvaluationId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
                    FromPhase = table.Column<int>(type: "int", nullable: false),
                    ToPhase = table.Column<int>(type: "int", nullable: false),
                    ApproverUserId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
                    Decision = table.Column<int>(type: "int", nullable: false),
                    Comment = table.Column<string>(type: "nvarchar(1000)", maxLength: 1000, nullable: true),
                    ApprovedAt = table.Column<DateTime>(type: "datetime2", nullable: false),
                    CreatedAt = table.Column<DateTime>(type: "datetime2", nullable: false),
                    UpdatedAt = table.Column<DateTime>(type: "datetime2", nullable: true),
                    CreatedBy = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
                    UpdatedBy = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_PurchaseEvaluationApprovals", x => x.Id);
                    table.ForeignKey(
                        name: "FK_PurchaseEvaluationApprovals_PurchaseEvaluations_PurchaseEvaluationId",
                        column: x => x.PurchaseEvaluationId,
                        principalTable: "PurchaseEvaluations",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Cascade);
                });

            migrationBuilder.CreateTable(
                name: "PurchaseEvaluationAttachments",
                columns: table => new
                {
                    Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
                    PurchaseEvaluationId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
                    PurchaseEvaluationSupplierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
                    FileName = table.Column<string>(type: "nvarchar(255)", maxLength: 255, nullable: false),
                    StoragePath = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: false),
                    FileSize = table.Column<long>(type: "bigint", nullable: false),
                    ContentType = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: false),
                    Purpose = table.Column<int>(type: "int", nullable: false),
                    Note = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true),
                    CreatedAt = table.Column<DateTime>(type: "datetime2", nullable: false),
                    UpdatedAt = table.Column<DateTime>(type: "datetime2", nullable: true),
                    CreatedBy = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
                    UpdatedBy = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_PurchaseEvaluationAttachments", x => x.Id);
                    table.ForeignKey(
                        name: "FK_PurchaseEvaluationAttachments_PurchaseEvaluations_PurchaseEvaluationId",
                        column: x => x.PurchaseEvaluationId,
                        principalTable: "PurchaseEvaluations",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Cascade);
                });

            migrationBuilder.CreateTable(
                name: "PurchaseEvaluationChangelogs",
                columns: table => new
                {
                    Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
                    PurchaseEvaluationId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
                    EntityType = table.Column<int>(type: "int", nullable: false),
                    EntityId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
                    Action = table.Column<int>(type: "int", nullable: false),
                    PhaseAtChange = table.Column<int>(type: "int", nullable: true),
                    UserId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
                    UserName = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
                    Summary = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true),
                    FieldChangesJson = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    ContextNote = table.Column<string>(type: "nvarchar(2000)", maxLength: 2000, nullable: true),
                    CreatedAt = table.Column<DateTime>(type: "datetime2", nullable: false),
                    UpdatedAt = table.Column<DateTime>(type: "datetime2", nullable: true),
                    CreatedBy = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
                    UpdatedBy = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_PurchaseEvaluationChangelogs", x => x.Id);
                    table.ForeignKey(
                        name: "FK_PurchaseEvaluationChangelogs_PurchaseEvaluations_PurchaseEvaluationId",
                        column: x => x.PurchaseEvaluationId,
                        principalTable: "PurchaseEvaluations",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Cascade);
                });

            migrationBuilder.CreateTable(
                name: "PurchaseEvaluationDetails",
                columns: table => new
                {
                    Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
                    PurchaseEvaluationId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
                    GroupCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
                    GroupName = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: false),
                    ItemCode = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
                    NoiDung = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: false),
                    DonViTinh = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
                    KhoiLuongNganSach = table.Column<decimal>(type: "decimal(18,4)", precision: 18, scale: 4, nullable: false),
                    KhoiLuongThiCong = table.Column<decimal>(type: "decimal(18,4)", precision: 18, scale: 4, nullable: false),
                    DonGiaNganSach = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false),
                    ThanhTienNganSach = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false),
                    Order = table.Column<int>(type: "int", nullable: false),
                    GhiChu = table.Column<string>(type: "nvarchar(1000)", maxLength: 1000, nullable: true),
                    CreatedAt = table.Column<DateTime>(type: "datetime2", nullable: false),
                    UpdatedAt = table.Column<DateTime>(type: "datetime2", nullable: true),
                    CreatedBy = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
                    UpdatedBy = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_PurchaseEvaluationDetails", x => x.Id);
                    table.ForeignKey(
                        name: "FK_PurchaseEvaluationDetails_PurchaseEvaluations_PurchaseEvaluationId",
                        column: x => x.PurchaseEvaluationId,
                        principalTable: "PurchaseEvaluations",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Cascade);
                });

            migrationBuilder.CreateTable(
                name: "PurchaseEvaluationSuppliers",
                columns: table => new
                {
                    Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
                    PurchaseEvaluationId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
                    SupplierId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
                    DisplayName = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
                    ContactName = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
                    ContactEmail = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
                    ContactPhone = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
                    PaymentTermText = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
                    Note = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true),
                    Order = table.Column<int>(type: "int", nullable: false),
                    CreatedAt = table.Column<DateTime>(type: "datetime2", nullable: false),
                    UpdatedAt = table.Column<DateTime>(type: "datetime2", nullable: true),
                    CreatedBy = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
                    UpdatedBy = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_PurchaseEvaluationSuppliers", x => x.Id);
                    table.ForeignKey(
                        name: "FK_PurchaseEvaluationSuppliers_PurchaseEvaluations_PurchaseEvaluationId",
                        column: x => x.PurchaseEvaluationId,
                        principalTable: "PurchaseEvaluations",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Cascade);
                });

            migrationBuilder.CreateTable(
                name: "PurchaseEvaluationWorkflowSteps",
                columns: table => new
                {
                    Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
                    PurchaseEvaluationWorkflowDefinitionId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
                    Order = table.Column<int>(type: "int", nullable: false),
                    Phase = table.Column<int>(type: "int", nullable: false),
                    Name = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: false),
                    SlaDays = table.Column<int>(type: "int", nullable: true),
                    CreatedAt = table.Column<DateTime>(type: "datetime2", nullable: false),
                    UpdatedAt = table.Column<DateTime>(type: "datetime2", nullable: true),
                    CreatedBy = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
                    UpdatedBy = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_PurchaseEvaluationWorkflowSteps", x => x.Id);
                    table.ForeignKey(
                        name: "FK_PurchaseEvaluationWorkflowSteps_PurchaseEvaluationWorkflowDefinitions_PurchaseEvaluationWorkflowDefinitionId",
                        column: x => x.PurchaseEvaluationWorkflowDefinitionId,
                        principalTable: "PurchaseEvaluationWorkflowDefinitions",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Cascade);
                });

            migrationBuilder.CreateTable(
                name: "PurchaseEvaluationQuotes",
                columns: table => new
                {
                    Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
                    PurchaseEvaluationDetailId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
                    PurchaseEvaluationSupplierId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
                    BgVat = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false),
                    ChuaVat = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false),
                    ThanhTien = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false),
                    IsSelected = table.Column<bool>(type: "bit", nullable: false),
                    Note = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true),
                    PurchaseEvaluationId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
                    CreatedAt = table.Column<DateTime>(type: "datetime2", nullable: false),
                    UpdatedAt = table.Column<DateTime>(type: "datetime2", nullable: true),
                    CreatedBy = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
                    UpdatedBy = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_PurchaseEvaluationQuotes", x => x.Id);
                    table.ForeignKey(
                        name: "FK_PurchaseEvaluationQuotes_PurchaseEvaluationDetails_PurchaseEvaluationDetailId",
                        column: x => x.PurchaseEvaluationDetailId,
                        principalTable: "PurchaseEvaluationDetails",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Cascade);
                    table.ForeignKey(
                        name: "FK_PurchaseEvaluationQuotes_PurchaseEvaluationSuppliers_PurchaseEvaluationSupplierId",
                        column: x => x.PurchaseEvaluationSupplierId,
                        principalTable: "PurchaseEvaluationSuppliers",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Restrict);
                    table.ForeignKey(
                        name: "FK_PurchaseEvaluationQuotes_PurchaseEvaluations_PurchaseEvaluationId",
                        column: x => x.PurchaseEvaluationId,
                        principalTable: "PurchaseEvaluations",
                        principalColumn: "Id");
                });

            migrationBuilder.CreateTable(
                name: "PurchaseEvaluationWorkflowStepApprovers",
                columns: table => new
                {
                    Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
                    PurchaseEvaluationWorkflowStepId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
                    Kind = table.Column<int>(type: "int", nullable: false),
                    AssignmentValue = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: false),
                    CreatedAt = table.Column<DateTime>(type: "datetime2", nullable: false),
                    UpdatedAt = table.Column<DateTime>(type: "datetime2", nullable: true),
                    CreatedBy = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
                    UpdatedBy = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_PurchaseEvaluationWorkflowStepApprovers", x => x.Id);
                    table.ForeignKey(
                        name: "FK_PurchaseEvaluationWorkflowStepApprovers_PurchaseEvaluationWorkflowSteps_PurchaseEvaluationWorkflowStepId",
                        column: x => x.PurchaseEvaluationWorkflowStepId,
                        principalTable: "PurchaseEvaluationWorkflowSteps",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Cascade);
                });

            migrationBuilder.CreateIndex(
                name: "IX_PurchaseEvaluationApprovals_PurchaseEvaluationId_ApprovedAt",
                table: "PurchaseEvaluationApprovals",
                columns: new[] { "PurchaseEvaluationId", "ApprovedAt" });

            migrationBuilder.CreateIndex(
                name: "IX_PurchaseEvaluationAttachments_PurchaseEvaluationId",
                table: "PurchaseEvaluationAttachments",
                column: "PurchaseEvaluationId");

            migrationBuilder.CreateIndex(
                name: "IX_PurchaseEvaluationAttachments_PurchaseEvaluationSupplierId",
                table: "PurchaseEvaluationAttachments",
                column: "PurchaseEvaluationSupplierId");

            migrationBuilder.CreateIndex(
                name: "IX_PurchaseEvaluationChangelogs_PurchaseEvaluationId_CreatedAt",
                table: "PurchaseEvaluationChangelogs",
                columns: new[] { "PurchaseEvaluationId", "CreatedAt" });

            migrationBuilder.CreateIndex(
                name: "IX_PurchaseEvaluationChangelogs_PurchaseEvaluationId_EntityType",
                table: "PurchaseEvaluationChangelogs",
                columns: new[] { "PurchaseEvaluationId", "EntityType" });

            migrationBuilder.CreateIndex(
                name: "IX_PurchaseEvaluationDetails_PurchaseEvaluationId_Order",
                table: "PurchaseEvaluationDetails",
                columns: new[] { "PurchaseEvaluationId", "Order" });

            migrationBuilder.CreateIndex(
                name: "IX_PurchaseEvaluationQuotes_PurchaseEvaluationDetailId_PurchaseEvaluationSupplierId",
                table: "PurchaseEvaluationQuotes",
                columns: new[] { "PurchaseEvaluationDetailId", "PurchaseEvaluationSupplierId" },
                unique: true);

            migrationBuilder.CreateIndex(
                name: "IX_PurchaseEvaluationQuotes_PurchaseEvaluationId",
                table: "PurchaseEvaluationQuotes",
                column: "PurchaseEvaluationId");

            migrationBuilder.CreateIndex(
                name: "IX_PurchaseEvaluationQuotes_PurchaseEvaluationSupplierId",
                table: "PurchaseEvaluationQuotes",
                column: "PurchaseEvaluationSupplierId");

            migrationBuilder.CreateIndex(
                name: "IX_PurchaseEvaluations_ContractId",
                table: "PurchaseEvaluations",
                column: "ContractId");

            migrationBuilder.CreateIndex(
                name: "IX_PurchaseEvaluations_MaPhieu",
                table: "PurchaseEvaluations",
                column: "MaPhieu",
                unique: true,
                filter: "[MaPhieu] IS NOT NULL");

            migrationBuilder.CreateIndex(
                name: "IX_PurchaseEvaluations_Phase_IsDeleted",
                table: "PurchaseEvaluations",
                columns: new[] { "Phase", "IsDeleted" });

            migrationBuilder.CreateIndex(
                name: "IX_PurchaseEvaluations_ProjectId",
                table: "PurchaseEvaluations",
                column: "ProjectId");

            migrationBuilder.CreateIndex(
                name: "IX_PurchaseEvaluations_SlaDeadline",
                table: "PurchaseEvaluations",
                column: "SlaDeadline");

            migrationBuilder.CreateIndex(
                name: "IX_PurchaseEvaluations_WorkflowDefinitionId",
                table: "PurchaseEvaluations",
                column: "WorkflowDefinitionId");

            migrationBuilder.CreateIndex(
                name: "IX_PurchaseEvaluationSuppliers_PurchaseEvaluationId_SupplierId",
                table: "PurchaseEvaluationSuppliers",
                columns: new[] { "PurchaseEvaluationId", "SupplierId" },
                unique: true);

            migrationBuilder.CreateIndex(
                name: "IX_PurchaseEvaluationSuppliers_SupplierId",
                table: "PurchaseEvaluationSuppliers",
                column: "SupplierId");

            migrationBuilder.CreateIndex(
                name: "IX_PurchaseEvaluationWorkflowDefinitions_Code_Version",
                table: "PurchaseEvaluationWorkflowDefinitions",
                columns: new[] { "Code", "Version" },
                unique: true);

            migrationBuilder.CreateIndex(
                name: "IX_PurchaseEvaluationWorkflowDefinitions_EvaluationType_IsActive",
                table: "PurchaseEvaluationWorkflowDefinitions",
                columns: new[] { "EvaluationType", "IsActive" });

            migrationBuilder.CreateIndex(
                name: "IX_PurchaseEvaluationWorkflowStepApprovers_PurchaseEvaluationWorkflowStepId",
                table: "PurchaseEvaluationWorkflowStepApprovers",
                column: "PurchaseEvaluationWorkflowStepId");

            migrationBuilder.CreateIndex(
                name: "IX_PurchaseEvaluationWorkflowSteps_PurchaseEvaluationWorkflowDefinitionId_Order",
                table: "PurchaseEvaluationWorkflowSteps",
                columns: new[] { "PurchaseEvaluationWorkflowDefinitionId", "Order" });
        }

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

            migrationBuilder.DropTable(
                name: "PurchaseEvaluationAttachments");

            migrationBuilder.DropTable(
                name: "PurchaseEvaluationChangelogs");

            migrationBuilder.DropTable(
                name: "PurchaseEvaluationQuotes");

            migrationBuilder.DropTable(
                name: "PurchaseEvaluationWorkflowStepApprovers");

            migrationBuilder.DropTable(
                name: "PurchaseEvaluationDetails");

            migrationBuilder.DropTable(
                name: "PurchaseEvaluationSuppliers");

            migrationBuilder.DropTable(
                name: "PurchaseEvaluationWorkflowSteps");

            migrationBuilder.DropTable(
                name: "PurchaseEvaluations");

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