088bae8052
- fix id prod/projCloudId
69 lines
1.8 KiB
C#
69 lines
1.8 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace EgtBEAMWALL.DataLayer.DatabaseModels
|
|
{
|
|
/// <summary>
|
|
/// Tabella dei LOG Macchina
|
|
/// </summary>
|
|
[Table("LogMachine")]
|
|
public class LogMachineModel
|
|
{
|
|
#region Public Properties
|
|
|
|
/// <summary>
|
|
/// Chiave primaria evento LOG
|
|
/// </summary>
|
|
[Key, Column("DbId"), DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
|
public int LogDbId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Stato da enum Core
|
|
/// </summary>
|
|
[Column("EvType")]
|
|
public Core.MachLog.MachLogTypes EvType { get; set; } = Core.MachLog.MachLogTypes.NULL;
|
|
|
|
/// <summary>
|
|
/// Data Evento
|
|
/// </summary>
|
|
[Column("DtEvent")]
|
|
public DateTime DtEvent { get; set; } = DateTime.Now;
|
|
|
|
/// <summary>
|
|
/// Key prod attivo (DB locale)
|
|
/// </summary>
|
|
[Column("ProdId")]
|
|
public int ProdId { get; set; } = 0;
|
|
|
|
/// <summary>
|
|
/// Key progetto (cloud)
|
|
/// </summary>
|
|
[Column("ProjCloudId")]
|
|
public int ProjCloudId { get; set; } = 0;
|
|
|
|
/// <summary>
|
|
/// ID Supervisore (Indirizzo VAR)
|
|
/// </summary>
|
|
[Column("SupervId")]
|
|
public string SupervId { get; set; } = "";
|
|
|
|
/// <summary>
|
|
/// Valore VAR (oggetto del log da decodificare)
|
|
/// </summary>
|
|
[Column("VarValue")]
|
|
public string VarValue { get; set; } = "";
|
|
|
|
/// <summary>
|
|
/// Data di invio evento (su cloud)
|
|
/// </summary>
|
|
[Column("DtSent")]
|
|
public DateTime? DtSent { get; set; } = null;
|
|
|
|
#endregion Public Properties
|
|
|
|
}
|
|
} |