using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Text; using System.Threading.Tasks; // // This is here so CodeMaid doesn't reorganize this document // namespace GWMS.Data.DatabaseModels { /// /// Tabella dati Plant (log storico) /// [Table("AlarmLog")] public class AlarmLogModel { [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)] public int AlarmLogId { get; set; } /// /// Data registazione /// public DateTime DtEvent { get; set; } = DateTime.Now; /// /// Impianto di riferimento /// public int PlantId { get; set; } /// /// Indirizzo area memoria allarme /// [MaxLength(50)] public string MemAddress { get; set; } = ""; /// /// Indice nel banco allarmi /// public int Index { get; set; } = 0; /// /// Valore banco allarmi /// public uint Status { get; set; } = 0; /// /// Valore decodificato (opzionale) /// public string ValDecoded { get; set; } = ""; [ForeignKey("PlantId")] public virtual PlantDetailModel Plant { get; set; } } }