feat:Initial commit
This commit is contained in:
21
StoreService/Database/Entities/StoreOrderItem.cs
Normal file
21
StoreService/Database/Entities/StoreOrderItem.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
namespace StoreService.Database.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// Item line inside an order with captured calculated price for history.
|
||||
/// </summary>
|
||||
public class StoreOrderItem
|
||||
{
|
||||
#region Properties
|
||||
public long Id { get; set; }
|
||||
public long StoreOrderId { get; set; }
|
||||
public long StoreItemId { get; set; }
|
||||
public int CalculatedPrice { get; set; }
|
||||
#endregion
|
||||
|
||||
#region Navigation
|
||||
public StoreOrder? Order { get; set; }
|
||||
public StoreItem? StoreItem { get; set; }
|
||||
public ICollection<StoreOrderItemDiscount> AppliedDiscounts { get; set; } = new List<StoreOrderItemDiscount>();
|
||||
#endregion
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user