diff --git a/coffeecard/CoffeeCard.Library/Migrations/20230711144034_AddPurchaseTypes.Designer.cs b/coffeecard/CoffeeCard.Library/Migrations/20230711144034_AddPurchaseTypes.Designer.cs index 34aeeaf1..a91dd671 100644 --- a/coffeecard/CoffeeCard.Library/Migrations/20230711144034_AddPurchaseTypes.Designer.cs +++ b/coffeecard/CoffeeCard.Library/Migrations/20230711144034_AddPurchaseTypes.Designer.cs @@ -12,7 +12,7 @@ namespace CoffeeCard.Library.Migrations { [DbContext(typeof(CoffeeCardContext))] - [Migration("20230921172352_AddPurchaseTypes")] + [Migration("20230711144034_AddPurchaseTypes")] partial class AddPurchaseTypes { protected override void BuildTargetModel(ModelBuilder modelBuilder) diff --git a/coffeecard/CoffeeCard.Models/Entities/Voucher.cs b/coffeecard/CoffeeCard.Models/Entities/Voucher.cs index e02cc212..5900949a 100644 --- a/coffeecard/CoffeeCard.Models/Entities/Voucher.cs +++ b/coffeecard/CoffeeCard.Models/Entities/Voucher.cs @@ -30,6 +30,8 @@ public class Voucher public User? User { get; set; } - public Purchase? Purchase { get; set; } + public int? PurchaseId { get; set; } + + public virtual Purchase? Purchase { get; set; } } } \ No newline at end of file