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;
|
2025-05-14 15:13:30 +10:00
|
|
|
|
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("FieldInFieldValues", Schema = DatabaseSchemas.Unit)]
|
2025-05-14 15:13:30 +10:00
|
|
|
|
[Comment("Значения полей ЭК")]
|
|
|
|
|
|
[PrimaryKey(nameof(FieldId), nameof(FieldValueId))]
|
2026-04-13 16:58:30 +10:00
|
|
|
|
public class UnitFieldInUnitFieldValue : IBaseEntityDateCreated
|
2025-05-14 15:13:30 +10:00
|
|
|
|
{
|
|
|
|
|
|
public Guid FieldId { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public Guid FieldValueId { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public DateTimeOffset DateCreated { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[ForeignKey(nameof(FieldId))]
|
|
|
|
|
|
public UnitField? Field { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[ForeignKey(nameof(FieldValueId))]
|
|
|
|
|
|
public UnitFieldValue? FieldValue { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|