feat(dal, domain): Удалена таблица UnitInFields. Удалены DateModified из таблиц JobFieldFilter, JobUnitFilter

This commit is contained in:
Mikhail Trubnikov
2026-05-29 11:01:14 +10:00
parent 5ec0e801e2
commit 83df669f84
11 changed files with 7653 additions and 86 deletions

View File

@@ -16,6 +16,7 @@ namespace PARR.Domain.Entities.Job
public DateTimeOffset DateCreated { get; set; }
[NotMapped]
public DateTimeOffset? DateModified { get; set; }
public Guid UnitFilterId { get; set; }

View File

@@ -15,6 +15,7 @@ namespace PARR.Domain.Entities.Job
public DateTimeOffset DateCreated { get; set; }
[NotMapped]
public DateTimeOffset? DateModified { get; set; }
public required string UnitFilter { get; set; }

View File

@@ -51,8 +51,6 @@ namespace PARR.Domain.Entities.Unit
}
}
public ICollection<UnitInField> UnitFields { get; set; } = new HashSet<UnitInField>();
public ICollection<UnitInValue> UnitValues { get; set; } = new HashSet<UnitInValue>();

View File

@@ -51,9 +51,6 @@ namespace PARR.Domain.Entities.Unit
/// </summary>
public bool? IsMultipleValue { get; set; }
public ICollection<UnitInField> Units { get; set; } = new HashSet<UnitInField>();
public ICollection<UnitInValue> UnitInValues { get; set; } = new HashSet<UnitInValue>();

View File

@@ -1,29 +0,0 @@
using Microsoft.EntityFrameworkCore;
using PARR.Domain.Constants;
using System.ComponentModel.DataAnnotations.Schema;
namespace PARR.Domain.Entities.Unit
{
/// <summary>
/// Связь Unit in Field
/// </summary>
///
[Table("UnitInFields", Schema = DatabaseSchemas.Unit)]
[Comment("Справочник полей ЭК")]
[PrimaryKey(nameof(UnitId), nameof(FieldId))]
public class UnitInField
{
public Guid UnitId { get; set; }
public Guid FieldId { get; set; }
public DateTimeOffset DateCreated { get; set; }
[ForeignKey(nameof(UnitId))]
public Unit? Unit { get; set; }
[ForeignKey(nameof(FieldId))]
public UnitField? UnitField { get; set; }
}
}