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,20 @@
namespace StoreService.Database.Entities;
/// <summary>
/// Represents a purchase order created by a user.
/// </summary>
public class StoreOrder
{
#region Properties
public long Id { get; set; }
public long UserId { get; set; }
public DateTime CostUpdateDate { get; set; } = DateTime.UtcNow; // updated when prices recalculated
public DateTime? PaidDate { get; set; } // when payment succeeded
public bool ItemsRedeemed { get; set; } // becomes true once items granted to inventory
#endregion
#region Navigation
public ICollection<StoreOrderItem> OrderItems { get; set; } = new List<StoreOrderItem>();
#endregion
}