using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using static EgtBEAMWALL.Core.ConstBeam;
namespace EgtBEAMWALL.DataLayer.DatabaseModels
{
///
/// Tabella deiu raggruppamenti PROJ in forma di PROD
///
[Table("ProdList")]
public class ProdModel
{
#region Public Properties
[Column("Description")]
public string Description { get; set; } = "";
///
/// Data Creazione
///
[Column("DtCreated")]
public DateTime DtCreated { get; set; }
///
/// Stato NEW = creato ma NON salvato
///
[Column("IsNew")]
public bool IsNew { get; set; } = true;
///
/// Stato locked, quando aperto da un dispositivo in rete
///
[Column("Lock")]
public bool Locked { get; set; } = false;
///
/// ID utente che ha bloccato (NumKey), quando aperto da un dispositivo in rete
///
[Column("LockedBy")]
public string LockedBy { get; set; } = "";
///
/// DataOra ultima operazione di Lock (o di rimozione di lock), quando aperto da un dispositivo in rete
///
[Column("LockDate")]
public DateTime LockDate { get; set; } = DateTime.MinValue;
///
/// Macchina
///
[Column("Machine")]
public string Machine { get; set; } = "";
///
/// Chiave univoca DB
///
[Key, Column("ProdDbId"), DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int ProdDbId { get; set; }
///
/// chiave univoca per EgtBM
///
[Column("Id")]
public int ProdId { get; set; }
///
/// Tipologia del progetto (Travi, Pareti, ...)
///
public BWType PType { get; set; } = BWType.NULL;
#endregion Public Properties
}
}