using System; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace EgwProxy.DataLayer.DbModel { /// /// Tabella dei LOG Macchina /// [Table("LogMachine")] public class LogMachineModel { #region Public Properties /// /// Chiave primaria evento LOG /// [Key, Column("DbId"), DatabaseGenerated(DatabaseGeneratedOption.Identity)] public int LogDbId { get; set; } /// /// Stato da enum Core /// [Column("EvType")] public Core.MachLog.MachLogTypes EvType { get; set; } = Core.MachLog.MachLogTypes.NULL; /// /// Data Evento /// [Column("DtEvent")] public DateTime DtEvent { get; set; } = DateTime.Now; /// /// Key prod attivo (DB locale) /// [Column("ProdId")] public int ProdId { get; set; } = 0; /// /// Key progetto (cloud) /// [Column("ProjCloudId")] public int ProjCloudId { get; set; } = 0; /// /// ID Supervisore (Indirizzo VAR) /// [Column("SupervId")] public string SupervId { get; set; } = ""; /// /// Valore VAR (oggetto del log da decodificare) /// [Column("VarValue")] public string VarValue { get; set; } = ""; /// /// Data di invio evento (su cloud) /// [Column("DtSent")] public DateTime? DtSent { get; set; } = null; #endregion Public Properties } }