Files
mapo-mono/MP.MONO.Data/DbModels/PrevMaintModel.cs
T
2022-06-10 11:17:33 +02:00

95 lines
2.6 KiB
C#

using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using static MP.MONO.Core.Enums;
// <Auto-Generated>
// This is here so CodeMaid doesn't reorganize this document
// </Auto-Generated>
namespace MP.MONO.Data.DbModels
{
/// <summary>
/// Tabella TASK configurati x manutenzione preventiva
/// </summary>
[Table("PrevMaintTask")]
public class PrevMaintTaskModel
{
/// <summary>
/// UID
/// </summary>
[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int PMTaskId { get; set; }
/// <summary>
/// Macchina cui è riferito il task
/// </summary>
public int MachineId { get; set; } = 1;
/// <summary>
/// Indice esterno evento
/// </summary>
public int ExtIdx { get; set; } = 0;
/// <summary>
/// Area di riferimento generale x manutenzione
/// </summary>
[MaxLength(50)]
public string Topic { get; set; } = "";
/// <summary>
/// Gruppo logico di riferimento
/// </summary>
[MaxLength(50)]
public string MachGroup { get; set; } = "";
/// <summary>
/// Valore per trigger di expiry
/// </summary>
public double ExpiryVal { get; set; } = 1;
/// <summary>
/// Descrizione intervento
/// </summary>
public string JobDescription { get; set; } = "";
/// <summary>
/// Team / Ruolo responsabile
/// </summary>
[MaxLength(50)]
public string TeamInCharge { get; set; } = "";
/// <summary>
/// Contatore associato al task
/// </summary>
public string CounterCode { get; set; } = "";
#if false
/// <summary>
/// DataOra evento start
/// </summary>
public DateTime DtRif { get; set; } = DateTime.Now;
/// <summary>
/// Tipologia di driver del task
/// </summary>
public PMTaskDriver TDriver { get; set; } = PMTaskDriver.ND;
/// <summary>
/// Tipologia di timer del task
/// </summary>
public PMTimeInterval TTimer { get; set; } = PMTimeInterval.ND;
#endif
/// <summary>
/// Navigazione oggetto Machine
/// </summary>
[ForeignKey("MachineId")]
public virtual MachineModel MachineNav { get; set; } = null!;
/// <summary>
/// Navigazione oggetto Counter
/// </summary>
[ForeignKey("CounterCode")]
public virtual CounterModel CounterNav { get; set; } = null!;
}
}