using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
#pragma warning disable CA1814 // Prefer jagged arrays over multidimensional
namespace PARR.DAL.Migrations
{
///
public partial class tblParrComponents : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "ParrComponents",
columns: table => new
{
Id = table.Column(type: "integer", nullable: false),
Name = table.Column(type: "text", nullable: false),
Description = table.Column(type: "text", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_ParrComponents", x => x.Id);
});
migrationBuilder.InsertData(
table: "ParrComponents",
columns: new[] { "Id", "Description", "Name" },
values: new object[,]
{
{ 0, "API", "Api" },
{ 1, "Загрузчик из АИХИТ", "AihitLoader" },
{ 2, "Синхронизатор АИХИТ", "AihitSyncer" },
{ 3, "Загрузчик нарядов из ЕСПП", "EsppOrderLoader" },
{ 4, "Управление нарядами ЕСПП", "EsppOrderManager" },
{ 5, "Синхронизатор расписаний", "EsppScheduleSync" },
{ 6, "Синхронизатор шаблонов", "EsppTemplateSync" },
{ 7, "Генератор шаблонов", "GeneratorTemplates" },
{ 8, "Авто-контроль РР", "JobAutoControl" },
{ 9, "Связывание нарядов ЕСПП с ПАРР (шаблонами, агентами)", "Master" },
{ 10, "Рассчет даты следующего срабатывания", "NextRun" },
{ 11, "Активатор шаблонов / расписаний", "TemplateActivator" },
{ 12, "Автораспределение РР", "TemplateDistributor" }
});
migrationBuilder.CreateIndex(
name: "IX_ParrComponents_Name",
table: "ParrComponents",
column: "Name",
unique: true);
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "ParrComponents");
}
}
}