feat(dal): заготовка для хранения истории
This commit is contained in:
62
PARR.DAL/Migrations/20241004002102_tblParrComponents.cs
Normal file
62
PARR.DAL/Migrations/20241004002102_tblParrComponents.cs
Normal file
@@ -0,0 +1,62 @@
|
||||
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");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user