Implemented order ui and validation. Added coupon handling

This commit is contained in:
Marcel Baumgartner
2023-10-19 00:30:54 +02:00
parent f7a16fd287
commit 6410846afc
11 changed files with 1349 additions and 3 deletions

View File

@@ -1,4 +1,6 @@
namespace Moonlight.App.Database.Entities;
using Moonlight.App.Database.Entities.Store;
namespace Moonlight.App.Database.Entities;
public class User
{
@@ -10,6 +12,11 @@ public class User
public string? TotpKey { get; set; } = null;
// Store
public double Balance { get; set; }
public List<Transaction> Transactions { get; set; } = new();
public List<CouponUse> CouponUses { get; set; } = new();
public List<GiftCodeUse> GiftCodeUses { get; set; } = new();
// Meta data
public string Flags { get; set; } = "";