bank account refactor
This commit is contained in:
@@ -351,6 +351,8 @@ namespace ReallifeGamemode.Database.Migrations
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd();
|
||||
|
||||
b.Property<int?>("BankAccountId");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.HasMaxLength(32);
|
||||
|
||||
@@ -360,6 +362,8 @@ namespace ReallifeGamemode.Database.Migrations
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("BankAccountId");
|
||||
|
||||
b.ToTable("Factions");
|
||||
});
|
||||
|
||||
@@ -375,15 +379,11 @@ namespace ReallifeGamemode.Database.Migrations
|
||||
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");
|
||||
});
|
||||
|
||||
@@ -453,10 +453,14 @@ namespace ReallifeGamemode.Database.Migrations
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd();
|
||||
|
||||
b.Property<int?>("BankAccountId");
|
||||
|
||||
b.Property<string>("Name");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("BankAccountId");
|
||||
|
||||
b.ToTable("Groups");
|
||||
});
|
||||
|
||||
@@ -467,12 +471,8 @@ namespace ReallifeGamemode.Database.Migrations
|
||||
|
||||
b.Property<int>("Balance");
|
||||
|
||||
b.Property<int?>("GroupId");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("GroupId");
|
||||
|
||||
b.ToTable("GroupBankAccounts");
|
||||
});
|
||||
|
||||
@@ -967,6 +967,8 @@ namespace ReallifeGamemode.Database.Migrations
|
||||
|
||||
b.Property<int?>("BanId");
|
||||
|
||||
b.Property<int?>("BankAccountId");
|
||||
|
||||
b.Property<int?>("BusinessId");
|
||||
|
||||
b.Property<int?>("CharacterId");
|
||||
@@ -1032,6 +1034,8 @@ namespace ReallifeGamemode.Database.Migrations
|
||||
|
||||
b.HasIndex("BanId");
|
||||
|
||||
b.HasIndex("BankAccountId");
|
||||
|
||||
b.HasIndex("BusinessId")
|
||||
.IsUnique();
|
||||
|
||||
@@ -1063,12 +1067,8 @@ namespace ReallifeGamemode.Database.Migrations
|
||||
b.Property<string>("Iban")
|
||||
.HasMaxLength(32);
|
||||
|
||||
b.Property<int>("UserId");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("UserId");
|
||||
|
||||
b.ToTable("UserBankAccounts");
|
||||
});
|
||||
|
||||
@@ -1273,12 +1273,11 @@ namespace ReallifeGamemode.Database.Migrations
|
||||
.OnDelete(DeleteBehavior.Cascade);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ReallifeGamemode.Database.Entities.FactionBankAccount", b =>
|
||||
modelBuilder.Entity("ReallifeGamemode.Database.Entities.Faction", b =>
|
||||
{
|
||||
b.HasOne("ReallifeGamemode.Database.Entities.Faction", "Faction")
|
||||
b.HasOne("ReallifeGamemode.Database.Entities.FactionBankAccount", "BankAccount")
|
||||
.WithMany()
|
||||
.HasForeignKey("FactionId")
|
||||
.OnDelete(DeleteBehavior.Cascade);
|
||||
.HasForeignKey("BankAccountId");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ReallifeGamemode.Database.Entities.FactionRank", b =>
|
||||
@@ -1296,11 +1295,11 @@ namespace ReallifeGamemode.Database.Migrations
|
||||
.HasForeignKey("FactionId");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ReallifeGamemode.Database.Entities.GroupBankAccount", b =>
|
||||
modelBuilder.Entity("ReallifeGamemode.Database.Entities.Group", b =>
|
||||
{
|
||||
b.HasOne("ReallifeGamemode.Database.Entities.Group", "Group")
|
||||
b.HasOne("ReallifeGamemode.Database.Entities.GroupBankAccount", "BankAccount")
|
||||
.WithMany()
|
||||
.HasForeignKey("GroupId");
|
||||
.HasForeignKey("BankAccountId");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ReallifeGamemode.Database.Entities.House", b =>
|
||||
@@ -1346,6 +1345,10 @@ namespace ReallifeGamemode.Database.Migrations
|
||||
.WithMany()
|
||||
.HasForeignKey("BanId");
|
||||
|
||||
b.HasOne("ReallifeGamemode.Database.Entities.UserBankAccount", "BankAccount")
|
||||
.WithMany()
|
||||
.HasForeignKey("BankAccountId");
|
||||
|
||||
b.HasOne("ReallifeGamemode.Database.Entities.Character", "Character")
|
||||
.WithMany()
|
||||
.HasForeignKey("CharacterId");
|
||||
@@ -1367,14 +1370,6 @@ namespace ReallifeGamemode.Database.Migrations
|
||||
.HasForeignKey("HouseId");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ReallifeGamemode.Database.Entities.UserBankAccount", b =>
|
||||
{
|
||||
b.HasOne("ReallifeGamemode.Database.Entities.User", "User")
|
||||
.WithMany()
|
||||
.HasForeignKey("UserId")
|
||||
.OnDelete(DeleteBehavior.Cascade);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ReallifeGamemode.Database.Entities.UserItem", b =>
|
||||
{
|
||||
b.HasOne("ReallifeGamemode.Database.Entities.User", "User")
|
||||
|
||||
Reference in New Issue
Block a user