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

@@ -61,29 +61,21 @@ namespace ReallifeGamemode.Migrations
b.ToTable("Bans");
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.BankAccount", b =>
modelBuilder.Entity("ReallifeGamemode.Server.Entities.BusinessBankAccount", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd();
b.Property<bool>("Active");
b.Property<int>("Balance");
b.Property<string>("Bic")
.HasMaxLength(12);
b.Property<string>("Discriminator")
.IsRequired();
b.Property<string>("Iban")
.HasMaxLength(32);
b.Property<int>("BusinessId");
b.HasKey("Id");
b.ToTable("BankAccounts");
b.HasIndex("BusinessId")
.IsUnique();
b.HasDiscriminator<string>("Discriminator").HasValue("BankAccount");
b.ToTable("BusinessBankAccounts");
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.Character", b =>
@@ -319,6 +311,30 @@ namespace ReallifeGamemode.Migrations
b.ToTable("Factions");
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.FactionBankAccount", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd();
b.Property<bool>("Active");
b.Property<int>("Balance");
b.Property<string>("Bic")
.HasMaxLength(12);
b.Property<int>("FactionId");
b.Property<string>("Iban")
.HasMaxLength(32);
b.HasKey("Id");
b.HasIndex("FactionId");
b.ToTable("FactionBankAccounts");
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.FactionRank", b =>
{
b.Property<int>("Id")
@@ -370,6 +386,22 @@ namespace ReallifeGamemode.Migrations
b.ToTable("Groups");
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.GroupBankAccount", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd();
b.Property<int>("Balance");
b.Property<int?>("GroupId");
b.HasKey("Id");
b.HasIndex("GroupId");
b.ToTable("GroupBankAccounts");
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.Interior", b =>
{
b.Property<int>("Id")
@@ -800,6 +832,30 @@ namespace ReallifeGamemode.Migrations
b.ToTable("Users");
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.UserBankAccount", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd();
b.Property<bool>("Active");
b.Property<int>("Balance");
b.Property<string>("Bic")
.HasMaxLength(12);
b.Property<string>("Iban")
.HasMaxLength(32);
b.Property<int>("UserId");
b.HasKey("Id");
b.HasIndex("UserId");
b.ToTable("UserBankAccounts");
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.UserItem", b =>
{
b.Property<int>("Id")
@@ -851,51 +907,6 @@ namespace ReallifeGamemode.Migrations
b.ToTable("WhitelistEntries");
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.BusinessBankAccount", b =>
{
b.HasBaseType("ReallifeGamemode.Server.Entities.BankAccount");
b.Property<int>("BusinessId");
b.HasIndex("BusinessId")
.IsUnique();
b.HasDiscriminator().HasValue("BusinessBankAccount");
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.FactionBankAccount", b =>
{
b.HasBaseType("ReallifeGamemode.Server.Entities.BankAccount");
b.Property<int>("FactionId");
b.HasIndex("FactionId");
b.HasDiscriminator().HasValue("FactionBankAccount");
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.GroupBankAccount", b =>
{
b.HasBaseType("ReallifeGamemode.Server.Entities.BankAccount");
b.Property<int?>("GroupId");
b.HasIndex("GroupId");
b.HasDiscriminator().HasValue("GroupBankAccount");
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.UserBankAccount", b =>
{
b.HasBaseType("ReallifeGamemode.Server.Entities.BankAccount");
b.Property<int>("UserId");
b.HasIndex("UserId");
b.HasDiscriminator().HasValue("UserBankAccount");
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.FactionVehicle", b =>
{
b.HasBaseType("ReallifeGamemode.Server.Entities.ServerVehicle");
@@ -946,6 +957,8 @@ namespace ReallifeGamemode.Migrations
b.Property<int>("Price");
b.Property<int?>("ShopId");
b.ToTable("ShopVehicles");
b.HasDiscriminator().HasValue("ShopVehicle");
@@ -1003,6 +1016,14 @@ namespace ReallifeGamemode.Migrations
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.FactionBankAccount", b =>
{
b.HasOne("ReallifeGamemode.Server.Entities.Faction", "Faction")
.WithMany()
.HasForeignKey("FactionId")
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.FactionRank", b =>
{
b.HasOne("ReallifeGamemode.Server.Entities.Faction", "Faction")
@@ -1011,6 +1032,13 @@ namespace ReallifeGamemode.Migrations
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.GroupBankAccount", b =>
{
b.HasOne("ReallifeGamemode.Server.Entities.Group", "Group")
.WithMany()
.HasForeignKey("GroupId");
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.Logs.Death", b =>
{
b.HasOne("ReallifeGamemode.Server.Entities.User", "Killer")
@@ -1057,6 +1085,14 @@ namespace ReallifeGamemode.Migrations
.HasForeignKey("JobId");
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.UserBankAccount", b =>
{
b.HasOne("ReallifeGamemode.Server.Entities.User", "User")
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.UserItem", b =>
{
b.HasOne("ReallifeGamemode.Server.Entities.User", "User")
@@ -1073,29 +1109,6 @@ namespace ReallifeGamemode.Migrations
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.FactionBankAccount", b =>
{
b.HasOne("ReallifeGamemode.Server.Entities.Faction", "Faction")
.WithMany()
.HasForeignKey("FactionId")
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.GroupBankAccount", b =>
{
b.HasOne("ReallifeGamemode.Server.Entities.Group", "Group")
.WithMany()
.HasForeignKey("GroupId");
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.UserBankAccount", b =>
{
b.HasOne("ReallifeGamemode.Server.Entities.User", "User")
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.FactionVehicle", b =>
{
b.HasOne("ReallifeGamemode.Server.Entities.Faction", "Faction")