using System;
using System.Linq;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
//
// This is here so CodeMaid doesn't reorganize this document
//
namespace GWMS.Data.DatabaseModels
{
///
/// Tabella dati Plant (status attuale x flussi gestiti)
///
[Table("PlantStatus")]
public class PlantStatusModel
{
#region Public Properties
public int PlantId { get; set; }
///
/// Tipologia di Flusso dati (per poter salvare "ultimo di ogni flusso" come "current status")
///
[MaxLength(250)]
public string FluxType { get; set; } = "ND";
public DateTime DtEvent { get; set; } = DateTime.Now;
public double ValNumber { get; set; }
[MaxLength(250)]
public string ValString { get; set; }
[ForeignKey("PlantId")]
public virtual PlantDetailModel Plant { get; set; }
#endregion Public Properties
}
}