6d8b6b3e59
Implemented DeliveryTask, Payment, and Sale entities with full CRUD, business logic, and API endpoints. Updated Order/OrderItem for sale linkage and fulfillment tracking. Registered new DbSets and DI services. Revised documentation for delivery, sale, and payment workflows.
18 lines
523 B
C#
18 lines
523 B
C#
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace Distribution.Models
|
|
{
|
|
public class OrderItem : Template
|
|
{
|
|
public Guid FK_OrderId { get; set; }
|
|
[ForeignKey("FK_OrderId")]
|
|
public Order Order { get; set; }
|
|
public Guid FK_ItemId { get; set; }
|
|
[ForeignKey("FK_ItemId")]
|
|
public Item Item { get; set; }
|
|
public int Quantity { get; set; }
|
|
public int QuantityFulfilled { get; set; } = 0;
|
|
public decimal UnitPrice { get; set; }
|
|
}
|
|
}
|