feat(api, dal): поиск групп работ, работ, теперь по маске. Статистика по шаблонам по StatusType. Добавлены индексы в Template, RobotConfiguration
This commit is contained in:
4141
PARR.DAL/Migrations/20260201232301_tblTemplatesAndRobotConfigurationsAddINdexes.Designer.cs
generated
Normal file
4141
PARR.DAL/Migrations/20260201232301_tblTemplatesAndRobotConfigurationsAddINdexes.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,36 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace PARR.DAL.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class tblTemplatesAndRobotConfigurationsAddINdexes : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_RobotConfigurations_TemplateId_RobotStatusCode",
|
||||
table: "RobotConfigurations",
|
||||
columns: new[] { "TemplateId", "RobotStatusCode" });
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_RobotConfigurations_TemplateId_TaskStatusCode",
|
||||
table: "RobotConfigurations",
|
||||
columns: new[] { "TemplateId", "TaskStatusCode" });
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_RobotConfigurations_TemplateId_RobotStatusCode",
|
||||
table: "RobotConfigurations");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_RobotConfigurations_TemplateId_TaskStatusCode",
|
||||
table: "RobotConfigurations");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2284,6 +2284,10 @@ namespace PARR.DAL.Migrations
|
||||
b.HasIndex("TemplateId", "RobotCode")
|
||||
.IsUnique();
|
||||
|
||||
b.HasIndex("TemplateId", "RobotStatusCode");
|
||||
|
||||
b.HasIndex("TemplateId", "TaskStatusCode");
|
||||
|
||||
b.ToTable("RobotConfigurations");
|
||||
});
|
||||
|
||||
|
||||
@@ -7,6 +7,8 @@ namespace PARR.DAL.Models
|
||||
{
|
||||
[Table("RobotConfigurations")]
|
||||
[Index(nameof(TemplateId), nameof(RobotCode), IsUnique = true)]
|
||||
[Index(nameof(TemplateId), nameof(TaskStatusCode))]
|
||||
[Index(nameof(TemplateId), nameof(RobotStatusCode))]
|
||||
public class RobotConfiguration : IBase
|
||||
{
|
||||
[Key]
|
||||
|
||||
Reference in New Issue
Block a user