feat(aihitMainSyncer): реализована логика синхронизации таблиц unit.* с данными из АИХ ИТ
This commit is contained in:
@@ -12,8 +12,8 @@ using PARR.DAL.Context;
|
||||
namespace PARR.DAL.Migrations
|
||||
{
|
||||
[DbContext(typeof(DataContext))]
|
||||
[Migration("20250514051030_units")]
|
||||
partial class units
|
||||
[Migration("20250520021852_tblUnits")]
|
||||
partial class tblUnits
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
@@ -2667,14 +2667,14 @@ namespace PARR.DAL.Migrations
|
||||
b.Property<DateTimeOffset?>("DateModified")
|
||||
.HasColumnType("timestamp with time zone");
|
||||
|
||||
b.Property<Guid>("VlaueId")
|
||||
b.Property<Guid>("ValueId")
|
||||
.HasColumnType("uuid");
|
||||
|
||||
b.HasKey("UnitId", "FieldId");
|
||||
|
||||
b.HasIndex("FieldId");
|
||||
|
||||
b.HasIndex("VlaueId");
|
||||
b.HasIndex("ValueId");
|
||||
|
||||
b.ToTable("UnitInValues", "unit", t =>
|
||||
{
|
||||
@@ -3224,14 +3224,14 @@ namespace PARR.DAL.Migrations
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("PARR.DAL.Models.Unit.Unit", "Unit")
|
||||
.WithMany("UnitInValues")
|
||||
.WithMany("UnitValues")
|
||||
.HasForeignKey("UnitId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("PARR.DAL.Models.Unit.UnitFieldValue", "Value")
|
||||
.WithMany("UnitInValues")
|
||||
.HasForeignKey("VlaueId")
|
||||
.HasForeignKey("ValueId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
@@ -3445,7 +3445,7 @@ namespace PARR.DAL.Migrations
|
||||
{
|
||||
b.Navigation("UnitFields");
|
||||
|
||||
b.Navigation("UnitInValues");
|
||||
b.Navigation("UnitValues");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("PARR.DAL.Models.Unit.UnitField", b =>
|
||||
@@ -6,7 +6,7 @@ using Microsoft.EntityFrameworkCore.Migrations;
|
||||
namespace PARR.DAL.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class units : Migration
|
||||
public partial class tblUnits : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
@@ -127,7 +127,7 @@ namespace PARR.DAL.Migrations
|
||||
{
|
||||
UnitId = table.Column<Guid>(type: "uuid", nullable: false),
|
||||
FieldId = table.Column<Guid>(type: "uuid", nullable: false),
|
||||
VlaueId = table.Column<Guid>(type: "uuid", nullable: false),
|
||||
ValueId = table.Column<Guid>(type: "uuid", nullable: false),
|
||||
DateCreated = table.Column<DateTimeOffset>(type: "timestamp with time zone", nullable: false),
|
||||
DateModified = table.Column<DateTimeOffset>(type: "timestamp with time zone", nullable: true)
|
||||
},
|
||||
@@ -135,8 +135,8 @@ namespace PARR.DAL.Migrations
|
||||
{
|
||||
table.PrimaryKey("PK_UnitInValues", x => new { x.UnitId, x.FieldId });
|
||||
table.ForeignKey(
|
||||
name: "FK_UnitInValues_FieldValues_VlaueId",
|
||||
column: x => x.VlaueId,
|
||||
name: "FK_UnitInValues_FieldValues_ValueId",
|
||||
column: x => x.ValueId,
|
||||
principalSchema: "unit",
|
||||
principalTable: "FieldValues",
|
||||
principalColumn: "Id",
|
||||
@@ -195,10 +195,10 @@ namespace PARR.DAL.Migrations
|
||||
column: "FieldId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_UnitInValues_VlaueId",
|
||||
name: "IX_UnitInValues_ValueId",
|
||||
schema: "unit",
|
||||
table: "UnitInValues",
|
||||
column: "VlaueId");
|
||||
column: "ValueId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Units_Name",
|
||||
@@ -2664,14 +2664,14 @@ namespace PARR.DAL.Migrations
|
||||
b.Property<DateTimeOffset?>("DateModified")
|
||||
.HasColumnType("timestamp with time zone");
|
||||
|
||||
b.Property<Guid>("VlaueId")
|
||||
b.Property<Guid>("ValueId")
|
||||
.HasColumnType("uuid");
|
||||
|
||||
b.HasKey("UnitId", "FieldId");
|
||||
|
||||
b.HasIndex("FieldId");
|
||||
|
||||
b.HasIndex("VlaueId");
|
||||
b.HasIndex("ValueId");
|
||||
|
||||
b.ToTable("UnitInValues", "unit", t =>
|
||||
{
|
||||
@@ -3221,14 +3221,14 @@ namespace PARR.DAL.Migrations
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("PARR.DAL.Models.Unit.Unit", "Unit")
|
||||
.WithMany("UnitInValues")
|
||||
.WithMany("UnitValues")
|
||||
.HasForeignKey("UnitId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("PARR.DAL.Models.Unit.UnitFieldValue", "Value")
|
||||
.WithMany("UnitInValues")
|
||||
.HasForeignKey("VlaueId")
|
||||
.HasForeignKey("ValueId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
@@ -3442,7 +3442,7 @@ namespace PARR.DAL.Migrations
|
||||
{
|
||||
b.Navigation("UnitFields");
|
||||
|
||||
b.Navigation("UnitInValues");
|
||||
b.Navigation("UnitValues");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("PARR.DAL.Models.Unit.UnitField", b =>
|
||||
|
||||
Reference in New Issue
Block a user