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.
21 lines
565 B
C#
21 lines
565 B
C#
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace Distribution.Models
|
|
{
|
|
public class Payment : Template
|
|
{
|
|
public Guid FK_SaleId { get; set; }
|
|
[ForeignKey("FK_SaleId")]
|
|
public Sale Sale { get; set; }
|
|
|
|
public Guid FK_StoreId { get; set; }
|
|
[ForeignKey("FK_StoreId")]
|
|
public Store Store { get; set; }
|
|
|
|
public decimal Amount { get; set; }
|
|
public PaymentMethod Method { get; set; }
|
|
public DateTime CollectedAt { get; set; }
|
|
public Guid CollectedBy { get; set; }
|
|
}
|
|
}
|