feat:Initial commit

This commit is contained in:
elar1s
2025-09-25 22:21:41 +03:00
commit 02934b1fd9
35 changed files with 1267 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
namespace StoreService.Database.Entities;
/// <summary>
/// Captures which discounts were applied to order items at purchase time.
/// </summary>
public class StoreOrderItemDiscount
{
#region Properties
public long Id { get; set; }
public long StoreOrderItemId { get; set; }
public long? StoreDiscountId { get; set; } // can be null if discount later removed but kept for history
#endregion
#region Navigation
public StoreOrderItem? OrderItem { get; set; }
public StoreDiscount? Discount { get; set; }
#endregion
}