feat(api,dal): в JobGroup добавлено свойство UserTimeZoneOffsetMinutes, доработан контроллер. EsppScheduleTransformService - доработка с учетом offset

This commit is contained in:
Mikhail Trubnikov
2026-02-09 15:48:30 +10:00
parent 25f3ebc372
commit 897dd4c4e3
12 changed files with 4309 additions and 174 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,31 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace PARR.DAL.Migrations
{
/// <inheritdoc />
public partial class tblJobGroupAddUserTimeZoneOffsetMinutes : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<int>(
name: "UserTimeZoneOffsetMinutes",
schema: "job",
table: "Groups",
type: "integer",
nullable: true,
comment: "Смещение часового пояса пользователя в минутах относительно UTC на момент ReferenceDate");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "UserTimeZoneOffsetMinutes",
schema: "job",
table: "Groups");
}
}
}

View File

@@ -1702,6 +1702,10 @@ namespace PARR.DAL.Migrations
.IsRequired()
.HasColumnType("text");
b.Property<int?>("UserTimeZoneOffsetMinutes")
.HasColumnType("integer")
.HasComment("Смещение часового пояса пользователя в минутах относительно UTC на момент ReferenceDate");
b.HasKey("Id");
b.HasIndex("GroupTypeId");