Revert "summarize bank accounts"

This reverts commit a21e7f887a.
This commit is contained in:
hydrant
2019-05-13 20:34:46 +02:00
parent a21e7f887a
commit 4500aa5275
10 changed files with 135 additions and 1499 deletions

View File

@@ -13,17 +13,22 @@ using System.Linq;
namespace ReallifeGamemode.Server.Entities
{
public class UserBankAccount : BankAccount, IBankAccount
public class UserBankAccount : IBankAccount
{
[NotMapped]
private int _balance;
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int Id { get; set; }
[ForeignKey("User")]
public int UserId { get; set; }
public User User { get; set; }
public override int Balance
[StringLength(12)]
public string Bic { get; set; }
[StringLength(32)]
public string Iban { get; set; }
public int Balance
{
get => _balance;
set
@@ -35,5 +40,6 @@ namespace ReallifeGamemode.Server.Entities
}
}
}
public bool Active { get; set; }
}
}