Files
2021-06-23 19:52:56 +02:00

47 lines
1.2 KiB
C#

using System;
using System.Linq;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
// <Auto-Generated>
// This is here so CodeMaid doesn't reorganize this document
// </Auto-Generated>
namespace GWMS.Data.DatabaseModels
{
/// <summary>
/// Tabella struttura consegne settimanali Plant + Supplier + Transp
/// </summary>
[Table("WeekPlan")]
public class WeekPlanModel
{
#region Public Properties
[Key, Column(Order = 0), DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int WeekPlanId { get; set; }
public int PlantId { get; set; }
public int SupplierId { get; set; }
public int TransporterId { get; set; }
public DayOfWeek DayNum { get; set; } = DayOfWeek.Monday;
public int DeliveryHour { get; set; }
[MaxLength(250)]
public string Note { get; set; } = "";
[ForeignKey("PlantId")]
public virtual PlantDetailModel Plant { get; set; }
[ForeignKey("SupplierId")]
public virtual SupplierModel Supplier { get; set; }
[ForeignKey("TransporterId")]
public virtual TransporterModel Transporter { get; set; }
#endregion Public Properties
}
}