Files
lux/EgwCoreLib.Lux.Data/DbModel/Task/JobTaskModel.cs
T
Samuele Locatelli ab5d3d3d10 Update migrations
2025-10-29 18:40:31 +01:00

57 lines
1.5 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>
/// 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;
}
}
}