2023-10-10 15:52:34 +10:00
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
2026-04-15 09:35:03 +10:00
|
|
|
|
using PARR.Domain.Constants;
|
2026-06-15 16:56:23 +10:00
|
|
|
|
using PARR.Domain.Entities.JobGroupEntities;
|
2023-10-10 15:52:34 +10:00
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
|
|
|
2026-04-30 10:35:31 +10:00
|
|
|
|
namespace PARR.Domain.Entities.Schedule
|
2023-10-10 15:52:34 +10:00
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
2026-05-19 09:47:35 +10:00
|
|
|
|
/// Расписание ЕСПП: значения заданий для JobGroup
|
2023-10-10 15:52:34 +10:00
|
|
|
|
/// </summary>
|
2026-04-15 09:35:03 +10:00
|
|
|
|
[Table("EsppSchValues", Schema = DatabaseSchemas.Schedule)]
|
2025-06-25 14:17:34 +10:00
|
|
|
|
[PrimaryKey(nameof(JobGroupId), nameof(TypeValueId), nameof(TypeConfigId))]
|
2023-10-10 15:52:34 +10:00
|
|
|
|
public class EsppSchValue
|
|
|
|
|
|
{
|
|
|
|
|
|
public Guid TypeValueId { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public Guid TypeConfigId { get; set; }
|
|
|
|
|
|
|
2025-06-25 14:17:34 +10:00
|
|
|
|
public Guid JobGroupId { get; set; }
|
|
|
|
|
|
|
2023-10-10 15:52:34 +10:00
|
|
|
|
[ForeignKey(nameof(TypeValueId))]
|
|
|
|
|
|
public EsppSchTypeValue? EsppSchTypeValue { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
[ForeignKey(nameof(TypeConfigId))]
|
|
|
|
|
|
public EsppSchTypeConfig? EsppSchTypeConfig { get; set; }
|
2025-06-25 14:17:34 +10:00
|
|
|
|
|
|
|
|
|
|
[ForeignKey(nameof(JobGroupId))]
|
|
|
|
|
|
public JobGroup? JobGroup { get; set; }
|
2023-10-10 15:52:34 +10:00
|
|
|
|
}
|
|
|
|
|
|
}
|