using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.EntityFrameworkCore; using static MagMan.Core.Enums; namespace MagMan.Data.Tenant.DbModels { // // This is here so CodeMaid doesn't reorganize this document // /// /// Tabella dei LOG Macchina (per macchina) /// [Table("LogMachine")] [Index(nameof(MachineID))] [Index(nameof(KeyNum))] public class LogMachineModel { [Key, Column("DbId"), DatabaseGenerated(DatabaseGeneratedOption.Identity)] public int LogDbId { get; set; } /// /// Key di riferimento per il progetto /// public int KeyNum { get; set; } = 0; /// /// Id macchina (diMagMan) /// public int MachineID { get; set; } = 0; /// /// Progetto di riferimento (CloudId) /// public int ProjDbId { get; set; } /// /// Data Registrazione /// [Column("DtEvent")] public DateTime DtEvent { get; set; } = DateTime.Now; /// /// Stato da enum Core /// [Column("EvType")] public MachLogTypes EvType { get; set; } = MachLogTypes.NULL; /// /// Indirizzo VAR /// [Column("SupervId")] public string SupervId { get; set; } = ""; /// /// Valore VAR /// [Column("VarValue")] public string VarValue { get; set; } = ""; } }