using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace EgwCoreLib.Lux.Data.DbModel
{
//
// This is here so CodeMaid doesn't reorganize this document
//
[Table("ProductionItem")]
public class ProductionItemModel
{
///
/// ID dell'articolo
///
[Key]
public int ProdItemID { get; set; }
///
/// Riga Ordine da cui scaturisce
///
public int OrderRowID { get; set; }
///
/// CodArticolo (opzionale) numerico
///
public int ItemCode { get; set; } = 0;
///
/// CodArticolo (opzionale) string
///
public string ExtItemCode { get; set; } = "";
///
/// Batch di produzione cui è correlato
///
public int ProductionBatchID { get; set; } = 0;
#if false
///
/// Cod Fornitore (opzionale)
///
public string SupplCode { get; set; } = "";
///
/// Descrizione
///
public string Description { get; set; } = "";
///
/// Costo (standard / senza listini)
///
public double Cost { get; set; } = 0;
///
/// Margine percentuale standard
///
public double Margin { get; set; } = 0.1;
///
/// Unità di Misura
///
public string UM { get; set; } = "#";
#endif
///
/// Navigazione OrderRow
///
[ForeignKey("OrderRowID")]
public virtual OrderRowModel OrderRowNav { get; set; } = null!;
///
/// Navigazione Batch Produzione
///
[ForeignKey("ProductionBatchID")]
public virtual ProductionBatchModel ProductionBatchNav { get; set; } = null!;
}
}