James Chapman 47d13ba922
All checks were successful
Docker Image CI / build (push) Successful in 3m45s
Add support for adding 'loose' items to transactions
2024-10-12 02:36:38 +01:00

18 lines
520 B
C#

namespace Groceries.Data;
public class ItemPurchase
{
public Guid ItemId { get; init; }
public Guid TransactionId { get; init; }
public DateTime CreatedAt { get; init; }
public Guid StoreId { get; init; }
public decimal Price { get; init; }
public decimal Quantity { get; init; }
public string? Unit { get; init; }
public bool IsLastPurchase { get; init; }
public Item? Item { get; init; }
public Transaction? Transaction { get; init; }
public Store? Store { get; init; }
}