Files
lux/EgwCoreLib.Lux.Data/DbModel/Task/JobTaskModel.cs
T
2025-10-30 17:01:44 +01:00

62 lines
1.6 KiB
C#

using EgwCoreLib.Lux.Data.DbModel.Utils;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
// <Auto-Generated>
// This is here so CodeMaid doesn't reorganize this document
// </Auto-Generated>
namespace EgwCoreLib.Lux.Data.DbModel.Task
{
/// <summary>
/// Definizione macro dei Cicli di Lavoro / Job
/// </summary>
[Table("task_job")]
public class JobTaskModel
{
/// <summary>
/// ID del record
/// </summary>
[Key]
public int JobID { get; set; }
/// <summary>
/// Descrizione del ciclo di lavoro
/// </summary>
public string Description { get; set; } = "";
/// <summary>
/// Indice (ordinale) visualizzazione
/// </summary>
public int Index { get; set; } = 0;
/// <summary>
/// Indica protezione cancellazione
/// </summary>
public bool Lock { get; set; } = false;
/// <summary>
/// Abilitato o meno x selezione
/// </summary>
public bool Enabled { get; set; } = true;
/// <summary>
/// Many-to-many with Tags
/// </summary>
public virtual ICollection<JobTaskTagModel> TagNav { get; set; } = new List<JobTaskTagModel>();
/// <summary>
/// Navigation verso JobStep
/// </summary>
public virtual ICollection<JobStepModel> JobStepNav { get; set; } = new List<JobStepModel>();
/// <summary>
/// Numero Step compresi
/// </summary>
[NotMapped]
public int NumChild
{
get => JobStepNav?.Count ?? 0;
}
}
}