feat(dal): В таблицу TemplateHistory добавлено поле ScheduleEsppId

This commit is contained in:
Mikhail Trubnikov
2026-03-05 12:29:41 +10:00
parent b2b5516326
commit a0369b9ebb
4 changed files with 4190 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,28 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace PARR.DAL.Migrations
{
/// <inheritdoc />
public partial class tbkTemplateHistoryAddScheduleEsppId : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "ScheduleEsppId",
table: "TemplateHistories",
type: "text",
nullable: true);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "ScheduleEsppId",
table: "TemplateHistories");
}
}
}

View File

@@ -2889,6 +2889,9 @@ namespace PARR.DAL.Migrations
b.Property<Guid>("ParentId")
.HasColumnType("uuid");
b.Property<string>("ScheduleEsppId")
.HasColumnType("text");
b.Property<int>("StatusTypeId")
.HasColumnType("integer");

View File

@@ -43,6 +43,8 @@ namespace PARR.DAL.Models
public TemplateStatusTypeEnum StatusTypeId { get; set; } = TemplateStatusTypeEnum.Used;
public string? ScheduleEsppId { get; set; }
[ForeignKey(nameof(ParentId))]
public Template? Template { get; set; }