using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
//
// This is here so CodeMaid doesn't reorganize this document
//
namespace MP.Data.DbModels
{
[Table("ElencoUdc")]
public class AnagUdcModel
{
[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public string UDC { get; set; } = "";
public string Lotto { get; set; } = "";
public string CodCliente { get; set; } = "";
public string CodPost { get; set; } = "";
public DateTime DtRec { get; set; }
public decimal Qta { get; set; } = 0;
public int NumCont { get; set; } = 0;
public string CodSoggetto { get; set; } = "";
public decimal PesoTot { get; set; } = 0;
public decimal PesoCad { get; set; } = 0;
public decimal Tara { get; set; } = 0;
public string CodImballo { get; set; } = "";
public int IdxPosizione { get; set; } = 0;
public DateTime DtMod { get; set; }
public string Note { get; set; } = "";
///
/// Navigazione oggetto lotto
///
[ForeignKey("Lotto")]
public virtual AnagLottoModel lottoNav { get; set; } = null!;
}
}