summarize bank accounts
This commit is contained in:
@@ -61,21 +61,29 @@ namespace ReallifeGamemode.Migrations
|
||||
b.ToTable("Bans");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ReallifeGamemode.Server.Entities.BusinessBankAccount", b =>
|
||||
modelBuilder.Entity("ReallifeGamemode.Server.Entities.BankAccount", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd();
|
||||
|
||||
b.Property<bool>("Active");
|
||||
|
||||
b.Property<int>("Balance");
|
||||
|
||||
b.Property<int>("BusinessId");
|
||||
b.Property<string>("Bic")
|
||||
.HasMaxLength(12);
|
||||
|
||||
b.Property<string>("Discriminator")
|
||||
.IsRequired();
|
||||
|
||||
b.Property<string>("Iban")
|
||||
.HasMaxLength(32);
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("BusinessId")
|
||||
.IsUnique();
|
||||
b.ToTable("BankAccounts");
|
||||
|
||||
b.ToTable("BusinessBankAccounts");
|
||||
b.HasDiscriminator<string>("Discriminator").HasValue("BankAccount");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ReallifeGamemode.Server.Entities.Character", b =>
|
||||
@@ -311,30 +319,6 @@ 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")
|
||||
@@ -386,22 +370,6 @@ 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")
|
||||
@@ -832,30 +800,6 @@ 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")
|
||||
@@ -907,6 +851,51 @@ 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");
|
||||
@@ -957,8 +946,6 @@ namespace ReallifeGamemode.Migrations
|
||||
|
||||
b.Property<int>("Price");
|
||||
|
||||
b.Property<int?>("ShopId");
|
||||
|
||||
b.ToTable("ShopVehicles");
|
||||
|
||||
b.HasDiscriminator().HasValue("ShopVehicle");
|
||||
@@ -1016,14 +1003,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.FactionRank", b =>
|
||||
{
|
||||
b.HasOne("ReallifeGamemode.Server.Entities.Faction", "Faction")
|
||||
@@ -1032,13 +1011,6 @@ 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")
|
||||
@@ -1085,14 +1057,6 @@ 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")
|
||||
@@ -1109,6 +1073,29 @@ 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")
|
||||
|
||||
Reference in New Issue
Block a user