b38d0bfea8
- fix LogMachine con SupervId - fix migrations
69 lines
1.8 KiB
C#
69 lines
1.8 KiB
C#
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
|
|
{
|
|
// <Auto-Generated>
|
|
// This is here so CodeMaid doesn't reorganize this document
|
|
// </Auto-Generated>
|
|
/// <summary>
|
|
/// Tabella dei LOG Macchina (per macchina)
|
|
/// </summary>
|
|
[Table("LogMachine")]
|
|
[Index(nameof(MachineID))]
|
|
[Index(nameof(KeyNum))]
|
|
public class LogMachineModel
|
|
{
|
|
[Key, Column("DbId"), DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
|
public int LogDbId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Key di riferimento per il progetto
|
|
/// </summary>
|
|
public int KeyNum { get; set; } = 0;
|
|
|
|
/// <summary>
|
|
/// Id macchina (diMagMan)
|
|
/// </summary>
|
|
public int MachineID { get; set; } = 0;
|
|
|
|
/// <summary>
|
|
/// Progetto di riferimento (CloudId)
|
|
/// </summary>
|
|
public int ProjDbId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Data Registrazione
|
|
/// </summary>
|
|
[Column("DtEvent")]
|
|
public DateTime DtEvent { get; set; } = DateTime.Now;
|
|
|
|
/// <summary>
|
|
/// Stato da enum Core
|
|
/// </summary>
|
|
[Column("EvType")]
|
|
public MachLogTypes EvType { get; set; } = MachLogTypes.NULL;
|
|
|
|
/// <summary>
|
|
/// Indirizzo VAR
|
|
/// </summary>
|
|
[Column("SupervId")]
|
|
public string SupervId { get; set; } = "";
|
|
|
|
/// <summary>
|
|
/// Valore VAR
|
|
/// </summary>
|
|
[Column("VarValue")]
|
|
public string VarValue { get; set; } = "";
|
|
|
|
|
|
}
|
|
}
|