using EgwCoreLib.Lux.Data.DbModel.Cost;
using EgwCoreLib.Lux.Data.DbModel.Sales;
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 EgwCoreLib.Lux.Data.DbModel.Production
{
///
/// Macchine / Impianti di produzione gestiti
///
[Table("production_plant")]
public class ProductionPlantModel
{
[Key]
public string ProdPlantCod { get; set; } = "";
public string ProdPlantDescript { get; set; } = "";
///
/// Indica se sia una postazione manuale
///
public bool IsManual { get; set; } = false;
///
/// Indica se sia in outsourcing/terzista
///
public bool Outsource { get; set; } = false;
///
/// Connessione con la risorsa puntuale per costing
///
public int? ResourceID { get; set; }
///
/// Navigazione Resources
///
[ForeignKey("ResourceID")]
public virtual ResourceModel ResourceNav { get; set; } = null!;
}
}