feat(dal,domain): Таблицы для JobGroup фильтров.
This commit is contained in:
33
PARR.Domain/Entities/JobGroupEntities/JobGroupAutoControl.cs
Normal file
33
PARR.Domain/Entities/JobGroupEntities/JobGroupAutoControl.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using PARR.Domain.Constants;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace PARR.Domain.Entities.JobGroupEntities
|
||||
{
|
||||
[Table("AutoControls", Schema = DatabaseSchemas.JobGroup)]
|
||||
[Comment("Таблица управления автоконтролем для группы работ")]
|
||||
public class JobGroupAutoControl
|
||||
{
|
||||
[Key]
|
||||
public Guid JobGroupId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Включен автоконтроль
|
||||
/// </summary>
|
||||
public bool IsEnable { get; set; } = false;
|
||||
|
||||
/// <summary>
|
||||
/// Статус шаблона в момент привязки или создания нового шаблона к Job
|
||||
/// </summary>
|
||||
public bool InitUsedTemplateState { get; set; } = false;
|
||||
|
||||
/// <summary>
|
||||
/// Статус расписания в момент привязки или создания нового шаблона к Job
|
||||
/// </summary>
|
||||
public bool InitUsedScheduleState { get; set; } = false;
|
||||
|
||||
[ForeignKey(nameof(JobGroupId))]
|
||||
public JobGroup? JobGroup { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user