feat(api,dal): в таблицу Jobs добавлено поле ResponseAreaMask. В JobController добавлено поле ResponseAreaMask. В TemplateController отображается фактическая РК, ЗО шаблона. RobotTask ЗО отдается согласно ResponseAreaMask. ShortcodeService теперь умеет принимать Template.
This commit is contained in:
4095
PARR.DAL/Migrations/20260113000345_tblJobsAddResponseArea.Designer.cs
generated
Normal file
4095
PARR.DAL/Migrations/20260113000345_tblJobsAddResponseArea.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
31
PARR.DAL/Migrations/20260113000345_tblJobsAddResponseArea.cs
Normal file
31
PARR.DAL/Migrations/20260113000345_tblJobsAddResponseArea.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace PARR.DAL.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class tblJobsAddResponseArea : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "ResponseArea",
|
||||
schema: "job",
|
||||
table: "Jobs",
|
||||
type: "text",
|
||||
nullable: false,
|
||||
defaultValue: "%ЗО_РГ%");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ResponseArea",
|
||||
schema: "job",
|
||||
table: "Jobs");
|
||||
}
|
||||
}
|
||||
}
|
||||
4095
PARR.DAL/Migrations/20260113021048_tblJobsRenameResponseArea.Designer.cs
generated
Normal file
4095
PARR.DAL/Migrations/20260113021048_tblJobsRenameResponseArea.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,30 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace PARR.DAL.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class tblJobsRenameResponseArea : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "ResponseArea",
|
||||
schema: "job",
|
||||
table: "Jobs",
|
||||
newName: "ResponseAreaMask");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "ResponseAreaMask",
|
||||
schema: "job",
|
||||
table: "Jobs",
|
||||
newName: "ResponseArea");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1570,6 +1570,10 @@ namespace PARR.DAL.Migrations
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("ResponseAreaMask")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("TemplateNameMask")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
Reference in New Issue
Block a user