f30c2aac3b
- Aggiunte migrations
63 lines
1.7 KiB
C#
63 lines
1.7 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 progetto (DB locale)
|
|
/// </summary>
|
|
[Column("ProjId")]
|
|
public int ProjId { 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
|
|
|
|
}
|
|
} |