diff --git a/PyroFetes/Models/DeliveryNote.cs b/PyroFetes/Models/DeliveryNote.cs index 9cf8e53..6497767 100644 --- a/PyroFetes/Models/DeliveryNote.cs +++ b/PyroFetes/Models/DeliveryNote.cs @@ -7,10 +7,12 @@ public class DeliveryNote [Key] public int Id { get; set; } [Required, MaxLength(100)] public string? TrackingNumber { get; set; } public int DelivererId { get; set; } + public int SupplierId { get; set; } [Required] public DateOnly EstimateDeliveryDate { get; set; } [Required] public DateOnly ExpeditionDate { get; set; } public DateOnly? RealDeliveryDate { get; set; } public Deliverer? Deliverer { get; set; } + public Supplier? Supplier { get; set; } public List? ProductDeliveries { get; set; } } \ No newline at end of file diff --git a/PyroFetes/Models/Supplier.cs b/PyroFetes/Models/Supplier.cs index 36b7247..0820812 100644 --- a/PyroFetes/Models/Supplier.cs +++ b/PyroFetes/Models/Supplier.cs @@ -15,5 +15,6 @@ public class Supplier public List? Prices { get; set; } public List? Quotations { get; set; } + public List? DeliveryNotes { get; set; } public List? PurchaseOrders { get; set; } } \ No newline at end of file