Files
parr_api/PARR.DAL/Migrations/20241004002102_tblParrComponents.cs

63 lines
2.7 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
#pragma warning disable CA1814 // Prefer jagged arrays over multidimensional
namespace PARR.DAL.Migrations
{
/// <inheritdoc />
public partial class tblParrComponents : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "ParrComponents",
columns: table => new
{
Id = table.Column<int>(type: "integer", nullable: false),
Name = table.Column<string>(type: "text", nullable: false),
Description = table.Column<string>(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);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "ParrComponents");
}
}
}