feat(dal,api): В таблицу истории роботов, добавлено поле RobotId. Обновлены методы в api для ведения истории роботов.

This commit is contained in:
Mikhail Trubnikov
2026-05-26 11:43:15 +10:00
parent 856b273e6b
commit 2024056871
8 changed files with 3878 additions and 9 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,29 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace PARR.DAL.Migrations
{
/// <inheritdoc />
public partial class tblRobotHistoriesAddRobotId : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "RobotId",
table: "RobotHistories",
type: "text",
nullable: true,
comment: "Идентификатор робота. Форматы: H20-R1-T, H20-R1-S, H20-R1-ET, H20-R1-ES.");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "RobotId",
table: "RobotHistories");
}
}
}

View File

@@ -891,6 +891,10 @@ namespace PARR.DAL.Migrations
b.Property<Guid>("RobotConfigurationId")
.HasColumnType("uuid");
b.Property<string>("RobotId")
.HasColumnType("text")
.HasComment("Идентификатор робота. Форматы: H20-R1-T, H20-R1-S, H20-R1-ET, H20-R1-ES.");
b.Property<string>("RobotIp")
.HasColumnType("text");