feat(dal): В таблицу TemplateHistory добавлено поле ScheduleEsppId
This commit is contained in:
4157
PARR.DAL/Migrations/20260305022345_tbkTemplateHistoryAddScheduleEsppId.Designer.cs
generated
Normal file
4157
PARR.DAL/Migrations/20260305022345_tbkTemplateHistoryAddScheduleEsppId.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -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");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -2889,6 +2889,9 @@ namespace PARR.DAL.Migrations
|
|||||||
b.Property<Guid>("ParentId")
|
b.Property<Guid>("ParentId")
|
||||||
.HasColumnType("uuid");
|
.HasColumnType("uuid");
|
||||||
|
|
||||||
|
b.Property<string>("ScheduleEsppId")
|
||||||
|
.HasColumnType("text");
|
||||||
|
|
||||||
b.Property<int>("StatusTypeId")
|
b.Property<int>("StatusTypeId")
|
||||||
.HasColumnType("integer");
|
.HasColumnType("integer");
|
||||||
|
|
||||||
|
|||||||
@@ -43,6 +43,8 @@ namespace PARR.DAL.Models
|
|||||||
|
|
||||||
public TemplateStatusTypeEnum StatusTypeId { get; set; } = TemplateStatusTypeEnum.Used;
|
public TemplateStatusTypeEnum StatusTypeId { get; set; } = TemplateStatusTypeEnum.Used;
|
||||||
|
|
||||||
|
public string? ScheduleEsppId { get; set; }
|
||||||
|
|
||||||
|
|
||||||
[ForeignKey(nameof(ParentId))]
|
[ForeignKey(nameof(ParentId))]
|
||||||
public Template? Template { get; set; }
|
public Template? Template { get; set; }
|
||||||
|
|||||||
Reference in New Issue
Block a user