2023-10-10 15:52:34 +10:00
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
2025-12-26 11:21:45 +10:00
|
|
|
|
using PARR.DAL.Context;
|
2025-06-25 14:17:34 +10:00
|
|
|
|
using PARR.DAL.Models.Job;
|
2023-10-10 15:52:34 +10:00
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
|
|
|
|
|
|
|
|
namespace PARR.DAL.Models
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Расписание ЕСПП: значения заданий для ApplicationsInWorks
|
|
|
|
|
|
/// </summary>
|
2025-12-26 11:21:45 +10:00
|
|
|
|
[Table("EsppSchValues", Schema = DataContextSettings.Schedule)]
|
2023-10-10 15:52:34 +10:00
|
|
|
|
//[Index(nameof(ApplicationsInWorkId), nameof(TypeValueId), nameof(TypeConfigId), IsUnique = true)]
|
2025-06-25 14:17:34 +10:00
|
|
|
|
//[PrimaryKey(nameof(ApplicationsInWorkId), nameof(TypeValueId), nameof(TypeConfigId))]
|
|
|
|
|
|
[PrimaryKey(nameof(JobGroupId), nameof(TypeValueId), nameof(TypeConfigId))]
|
2023-10-10 15:52:34 +10:00
|
|
|
|
public class EsppSchValue
|
|
|
|
|
|
{
|
2025-06-25 14:17:34 +10:00
|
|
|
|
//public Guid ApplicationsInWorkId { get; set; }
|
2023-10-10 15:52:34 +10:00
|
|
|
|
|
|
|
|
|
|
public Guid TypeValueId { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public Guid TypeConfigId { get; set; }
|
|
|
|
|
|
|
2025-06-25 14:17:34 +10:00
|
|
|
|
public Guid JobGroupId { get; set; }
|
|
|
|
|
|
|
2025-12-25 17:01:42 +10:00
|
|
|
|
|
2025-06-25 14:17:34 +10:00
|
|
|
|
//[ForeignKey(nameof(ApplicationsInWorkId))]
|
|
|
|
|
|
//public ApplicationsInWork? ApplicationsInWork { 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
|
|
|
|
}
|
|
|
|
|
|
}
|