2025-05-14 15:13:30 +10:00
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
2026-04-15 09:35:03 +10:00
|
|
|
|
using PARR.Domain.Constants;
|
2026-04-13 16:58:30 +10:00
|
|
|
|
using PARR.Domain.Entities.Base;
|
2026-07-03 11:17:48 +10:00
|
|
|
|
using PARR.Domain.Entities.JobEntities;
|
2025-05-14 15:13:30 +10:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
|
|
|
2026-04-30 10:35:31 +10:00
|
|
|
|
namespace PARR.Domain.Entities.Unit
|
2025-05-14 15:13:30 +10:00
|
|
|
|
{
|
2026-04-15 09:35:03 +10:00
|
|
|
|
[Table("FieldValues", Schema = DatabaseSchemas.Unit)]
|
2025-05-14 15:13:30 +10:00
|
|
|
|
[Comment("Значения полей ЭК")]
|
2025-05-21 16:50:00 +10:00
|
|
|
|
[Index(nameof(Value), IsUnique = true)]
|
2026-04-13 16:58:30 +10:00
|
|
|
|
public class UnitFieldValue : IBaseEntity
|
2025-05-14 15:13:30 +10:00
|
|
|
|
{
|
|
|
|
|
|
[Key]
|
|
|
|
|
|
public Guid Id { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public DateTimeOffset DateCreated { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
[NotMapped]
|
|
|
|
|
|
public DateTimeOffset? DateModified { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public string? Value { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public ICollection<UnitInValue> UnitInValues { get; set; } = new HashSet<UnitInValue>();
|
|
|
|
|
|
|
|
|
|
|
|
public ICollection<UnitFieldInUnitFieldValue> FieldValues { get; set; } = new HashSet<UnitFieldInUnitFieldValue>();
|
2025-12-18 16:48:48 +10:00
|
|
|
|
|
|
|
|
|
|
public UnitRegionalEkPtkGroup? RegionalEkPtkGroup { get; set; }
|
2026-05-12 16:34:31 +10:00
|
|
|
|
|
|
|
|
|
|
public ICollection<UnitsInTemplate> UnitsInTemplates { get; set; } = new HashSet<UnitsInTemplate>();
|
2025-05-14 15:13:30 +10:00
|
|
|
|
}
|
|
|
|
|
|
}
|