using Core;
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using static Core.Enum;
#nullable disable
namespace LiMan.DB.DBModels
{
//
// This is here so CodeMaid doesn't reorganize this document
//
[Table("TicketLog")]
public partial class TicketModel
{
#region Public Properties
[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int IdxTicket { get; set; }
public DateTime DtReq { get; set; } = DateTime.Now;
///
/// Tipologia di ticket
///
public TipologiaTicket TType { get; set; } = TipologiaTicket.Licenze;
///
/// Tipologia di licenza gestita
///
public TipoLicenza Tipo { get; set; } = TipoLicenza.UserKey;
///
/// IDX licenza master
///
public int IdxLic { get; set; } = 0;
///
/// IDX licenza child (opzionale)
///
public int IdxSubLic { get; set; } = 0;
///
/// Codice univoco della sub licenza (opzionale)
///
public string CodImpiego { get; set; } = "";
///
/// Contatto del cliente richiedente
///
public string ContactName { get; set; } = "";
///
/// Contatto email del cliente richiedente
///
public string ContactEmail { get; set; } = "";
///
/// Contatto telefonico del cliente richiedente
///
public string ContactPhone { get; set; } = "";
///
/// Motivazione della richiesta
///
public string ReqBody { get; set; } = "";
///
/// Stato richiesta
///
public StatoRichiesta Status { get; set; } = StatoRichiesta.ND;
///
/// Email del responsabile dell'azione (interno - supplier)
///
public string SupplEmail { get; set; } = "";
///
/// Cod dell'user responsabile dell'azione (interno - supplier)
///
public string SupplUserCode { get; set; } = "";
///
/// Risposta alla richiesta
///
public string SupplAnsw { get; set; } = "";
[ForeignKey("IdxLic")]
public virtual LicenzaModel LicenzaNav { get; set; }
#endregion Public Properties
}
}