Additional tools for Admin portal, and huge NameSpace Revamp
This commit is contained in:
+63
-63
@@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Metadata;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
using Server.Data;
|
||||
using DataServer.Data;
|
||||
|
||||
#nullable disable
|
||||
|
||||
@@ -25,7 +25,7 @@ namespace SystemRevivalServer.Migrations
|
||||
|
||||
MySqlModelBuilderExtensions.AutoIncrementColumns(modelBuilder);
|
||||
|
||||
modelBuilder.Entity("Server.Data.Account", b =>
|
||||
modelBuilder.Entity("DataServer.Data.Account", b =>
|
||||
{
|
||||
b.Property<ulong>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
@@ -84,7 +84,7 @@ namespace SystemRevivalServer.Migrations
|
||||
b.ToTable("accounts", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Server.Data.Entities.DungeonBeltItem", b =>
|
||||
modelBuilder.Entity("DataServer.Data.Entities.DungeonBeltItem", b =>
|
||||
{
|
||||
b.Property<ulong>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
@@ -108,7 +108,7 @@ namespace SystemRevivalServer.Migrations
|
||||
b.ToTable("dungeon_belt_items");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Server.Data.Entities.DungeonCharacter", b =>
|
||||
modelBuilder.Entity("DataServer.Data.Entities.DungeonCharacter", b =>
|
||||
{
|
||||
b.Property<ulong>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
@@ -209,7 +209,7 @@ namespace SystemRevivalServer.Migrations
|
||||
b.ToTable("dungeon_characters");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Server.Data.Entities.DungeonCharacterItem", b =>
|
||||
modelBuilder.Entity("DataServer.Data.Entities.DungeonCharacterItem", b =>
|
||||
{
|
||||
b.Property<ulong>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
@@ -247,7 +247,7 @@ namespace SystemRevivalServer.Migrations
|
||||
b.ToTable("dungeon_character_items");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Server.Data.Entities.DungeonItemDefinition", b =>
|
||||
modelBuilder.Entity("DataServer.Data.Entities.DungeonItemDefinition", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
@@ -360,7 +360,7 @@ namespace SystemRevivalServer.Migrations
|
||||
b.ToTable("dungeon_item_definitions");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Server.Data.Entities.DungeonLearnedSpell", b =>
|
||||
modelBuilder.Entity("DataServer.Data.Entities.DungeonLearnedSpell", b =>
|
||||
{
|
||||
b.Property<ulong>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
@@ -392,7 +392,7 @@ namespace SystemRevivalServer.Migrations
|
||||
b.ToTable("dungeon_learned_spells");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Server.Data.Entities.DungeonLootTable", b =>
|
||||
modelBuilder.Entity("DataServer.Data.Entities.DungeonLootTable", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
@@ -436,7 +436,7 @@ namespace SystemRevivalServer.Migrations
|
||||
b.ToTable("dungeon_loot_tables");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Server.Data.Entities.DungeonLootTableEntry", b =>
|
||||
modelBuilder.Entity("DataServer.Data.Entities.DungeonLootTableEntry", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
@@ -480,7 +480,7 @@ namespace SystemRevivalServer.Migrations
|
||||
b.ToTable("dungeon_loot_table_entries");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Server.Data.Entities.DungeonMobDefinition", b =>
|
||||
modelBuilder.Entity("DataServer.Data.Entities.DungeonMobDefinition", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
@@ -624,7 +624,7 @@ namespace SystemRevivalServer.Migrations
|
||||
b.ToTable("dungeon_mob_definitions");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Server.Data.Entities.DungeonMobLootTable", b =>
|
||||
modelBuilder.Entity("DataServer.Data.Entities.DungeonMobLootTable", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
@@ -653,7 +653,7 @@ namespace SystemRevivalServer.Migrations
|
||||
b.ToTable("dungeon_mob_loot_tables");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Server.Data.Entities.DungeonSpellDefinition", b =>
|
||||
modelBuilder.Entity("DataServer.Data.Entities.DungeonSpellDefinition", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
@@ -725,7 +725,7 @@ namespace SystemRevivalServer.Migrations
|
||||
b.ToTable("dungeon_spell_definitions");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Server.Data.Entities.DungeonStashItem", b =>
|
||||
modelBuilder.Entity("DataServer.Data.Entities.DungeonStashItem", b =>
|
||||
{
|
||||
b.Property<ulong>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
@@ -760,7 +760,7 @@ namespace SystemRevivalServer.Migrations
|
||||
b.ToTable("dungeon_stash_items");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Server.Data.EquipmentSlot", b =>
|
||||
modelBuilder.Entity("DataServer.Data.EquipmentSlot", b =>
|
||||
{
|
||||
b.Property<ulong>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
@@ -799,7 +799,7 @@ namespace SystemRevivalServer.Migrations
|
||||
b.ToTable("equipment", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Server.Data.GameItem", b =>
|
||||
modelBuilder.Entity("DataServer.Data.GameItem", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.HasColumnType("int");
|
||||
@@ -918,7 +918,7 @@ namespace SystemRevivalServer.Migrations
|
||||
b.ToTable("game_items", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Server.Data.GameRecipe", b =>
|
||||
modelBuilder.Entity("DataServer.Data.GameRecipe", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.HasColumnType("int");
|
||||
@@ -961,7 +961,7 @@ namespace SystemRevivalServer.Migrations
|
||||
b.ToTable("game_recipes", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Server.Data.InventoryItem", b =>
|
||||
modelBuilder.Entity("DataServer.Data.InventoryItem", b =>
|
||||
{
|
||||
b.Property<ulong>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
@@ -1005,7 +1005,7 @@ namespace SystemRevivalServer.Migrations
|
||||
b.ToTable("inventories", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Server.Data.ItemTemplate", b =>
|
||||
modelBuilder.Entity("DataServer.Data.ItemTemplate", b =>
|
||||
{
|
||||
b.Property<ulong>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
@@ -1053,7 +1053,7 @@ namespace SystemRevivalServer.Migrations
|
||||
b.ToTable("item_templates", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Server.Data.MatchHistory", b =>
|
||||
modelBuilder.Entity("DataServer.Data.MatchHistory", b =>
|
||||
{
|
||||
b.Property<ulong>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
@@ -1130,7 +1130,7 @@ namespace SystemRevivalServer.Migrations
|
||||
b.ToTable("match_history", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Server.Data.Old_Character", b =>
|
||||
modelBuilder.Entity("DataServer.Data.Old_Character", b =>
|
||||
{
|
||||
b.Property<ulong>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
@@ -1225,7 +1225,7 @@ namespace SystemRevivalServer.Migrations
|
||||
b.ToTable("characters", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Server.Data.PlayerStats", b =>
|
||||
modelBuilder.Entity("DataServer.Data.PlayerStats", b =>
|
||||
{
|
||||
b.Property<ulong>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
@@ -1303,7 +1303,7 @@ namespace SystemRevivalServer.Migrations
|
||||
b.ToTable("player_stats", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Server.Data.Session", b =>
|
||||
modelBuilder.Entity("DataServer.Data.Session", b =>
|
||||
{
|
||||
b.Property<ulong>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
@@ -1348,7 +1348,7 @@ namespace SystemRevivalServer.Migrations
|
||||
b.ToTable("sessions", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Server.Data.Zone", b =>
|
||||
modelBuilder.Entity("DataServer.Data.Zone", b =>
|
||||
{
|
||||
b.Property<ulong>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
@@ -1399,9 +1399,9 @@ namespace SystemRevivalServer.Migrations
|
||||
b.ToTable("zones", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Server.Data.Entities.DungeonBeltItem", b =>
|
||||
modelBuilder.Entity("DataServer.Data.Entities.DungeonBeltItem", b =>
|
||||
{
|
||||
b.HasOne("Server.Data.Entities.DungeonCharacter", "Character")
|
||||
b.HasOne("DataServer.Data.Entities.DungeonCharacter", "Character")
|
||||
.WithMany()
|
||||
.HasForeignKey("CharacterId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
@@ -1410,9 +1410,9 @@ namespace SystemRevivalServer.Migrations
|
||||
b.Navigation("Character");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Server.Data.Entities.DungeonCharacter", b =>
|
||||
modelBuilder.Entity("DataServer.Data.Entities.DungeonCharacter", b =>
|
||||
{
|
||||
b.HasOne("Server.Data.Account", "Account")
|
||||
b.HasOne("DataServer.Data.Account", "Account")
|
||||
.WithMany()
|
||||
.HasForeignKey("AccountId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
@@ -1421,15 +1421,15 @@ namespace SystemRevivalServer.Migrations
|
||||
b.Navigation("Account");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Server.Data.Entities.DungeonCharacterItem", b =>
|
||||
modelBuilder.Entity("DataServer.Data.Entities.DungeonCharacterItem", b =>
|
||||
{
|
||||
b.HasOne("Server.Data.Entities.DungeonCharacter", "Character")
|
||||
b.HasOne("DataServer.Data.Entities.DungeonCharacter", "Character")
|
||||
.WithMany("Inventory")
|
||||
.HasForeignKey("CharacterId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("Server.Data.Entities.DungeonItemDefinition", "ItemDefinition")
|
||||
b.HasOne("DataServer.Data.Entities.DungeonItemDefinition", "ItemDefinition")
|
||||
.WithMany()
|
||||
.HasForeignKey("ItemDefinitionId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
@@ -1440,15 +1440,15 @@ namespace SystemRevivalServer.Migrations
|
||||
b.Navigation("ItemDefinition");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Server.Data.Entities.DungeonLearnedSpell", b =>
|
||||
modelBuilder.Entity("DataServer.Data.Entities.DungeonLearnedSpell", b =>
|
||||
{
|
||||
b.HasOne("Server.Data.Entities.DungeonCharacter", "Character")
|
||||
b.HasOne("DataServer.Data.Entities.DungeonCharacter", "Character")
|
||||
.WithMany("LearnedSpells")
|
||||
.HasForeignKey("CharacterId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("Server.Data.Entities.DungeonSpellDefinition", "Definition")
|
||||
b.HasOne("DataServer.Data.Entities.DungeonSpellDefinition", "Definition")
|
||||
.WithMany()
|
||||
.HasForeignKey("DefinitionId");
|
||||
|
||||
@@ -1457,15 +1457,15 @@ namespace SystemRevivalServer.Migrations
|
||||
b.Navigation("Definition");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Server.Data.Entities.DungeonLootTableEntry", b =>
|
||||
modelBuilder.Entity("DataServer.Data.Entities.DungeonLootTableEntry", b =>
|
||||
{
|
||||
b.HasOne("Server.Data.Entities.DungeonItemDefinition", "ItemDefinition")
|
||||
b.HasOne("DataServer.Data.Entities.DungeonItemDefinition", "ItemDefinition")
|
||||
.WithMany()
|
||||
.HasForeignKey("ItemDefinitionId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("Server.Data.Entities.DungeonLootTable", "LootTable")
|
||||
b.HasOne("DataServer.Data.Entities.DungeonLootTable", "LootTable")
|
||||
.WithMany("Entries")
|
||||
.HasForeignKey("LootTableId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
@@ -1476,15 +1476,15 @@ namespace SystemRevivalServer.Migrations
|
||||
b.Navigation("LootTable");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Server.Data.Entities.DungeonMobLootTable", b =>
|
||||
modelBuilder.Entity("DataServer.Data.Entities.DungeonMobLootTable", b =>
|
||||
{
|
||||
b.HasOne("Server.Data.Entities.DungeonLootTable", "LootTable")
|
||||
b.HasOne("DataServer.Data.Entities.DungeonLootTable", "LootTable")
|
||||
.WithMany()
|
||||
.HasForeignKey("LootTableId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("Server.Data.Entities.DungeonMobDefinition", "MobDefinition")
|
||||
b.HasOne("DataServer.Data.Entities.DungeonMobDefinition", "MobDefinition")
|
||||
.WithMany()
|
||||
.HasForeignKey("MobDefinitionId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
@@ -1495,15 +1495,15 @@ namespace SystemRevivalServer.Migrations
|
||||
b.Navigation("MobDefinition");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Server.Data.Entities.DungeonStashItem", b =>
|
||||
modelBuilder.Entity("DataServer.Data.Entities.DungeonStashItem", b =>
|
||||
{
|
||||
b.HasOne("Server.Data.Entities.DungeonCharacter", "Character")
|
||||
b.HasOne("DataServer.Data.Entities.DungeonCharacter", "Character")
|
||||
.WithMany("Stash")
|
||||
.HasForeignKey("CharacterId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("Server.Data.Entities.DungeonItemDefinition", "Definition")
|
||||
b.HasOne("DataServer.Data.Entities.DungeonItemDefinition", "Definition")
|
||||
.WithMany()
|
||||
.HasForeignKey("DefinitionId");
|
||||
|
||||
@@ -1512,15 +1512,15 @@ namespace SystemRevivalServer.Migrations
|
||||
b.Navigation("Definition");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Server.Data.EquipmentSlot", b =>
|
||||
modelBuilder.Entity("DataServer.Data.EquipmentSlot", b =>
|
||||
{
|
||||
b.HasOne("Server.Data.Old_Character", "Old_Character")
|
||||
b.HasOne("DataServer.Data.Old_Character", "Old_Character")
|
||||
.WithMany()
|
||||
.HasForeignKey("CharacterId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("Server.Data.ItemTemplate", "ItemTemplate")
|
||||
b.HasOne("DataServer.Data.ItemTemplate", "ItemTemplate")
|
||||
.WithMany()
|
||||
.HasForeignKey("ItemTemplateId")
|
||||
.OnDelete(DeleteBehavior.Restrict)
|
||||
@@ -1531,9 +1531,9 @@ namespace SystemRevivalServer.Migrations
|
||||
b.Navigation("Old_Character");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Server.Data.GameRecipe", b =>
|
||||
modelBuilder.Entity("DataServer.Data.GameRecipe", b =>
|
||||
{
|
||||
b.HasOne("Server.Data.GameItem", "ResultItem")
|
||||
b.HasOne("DataServer.Data.GameItem", "ResultItem")
|
||||
.WithMany()
|
||||
.HasForeignKey("ResultItemId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
@@ -1542,15 +1542,15 @@ namespace SystemRevivalServer.Migrations
|
||||
b.Navigation("ResultItem");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Server.Data.InventoryItem", b =>
|
||||
modelBuilder.Entity("DataServer.Data.InventoryItem", b =>
|
||||
{
|
||||
b.HasOne("Server.Data.Old_Character", "Old_Character")
|
||||
b.HasOne("DataServer.Data.Old_Character", "Old_Character")
|
||||
.WithMany()
|
||||
.HasForeignKey("CharacterId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("Server.Data.ItemTemplate", "ItemTemplate")
|
||||
b.HasOne("DataServer.Data.ItemTemplate", "ItemTemplate")
|
||||
.WithMany()
|
||||
.HasForeignKey("ItemTemplateId")
|
||||
.OnDelete(DeleteBehavior.Restrict)
|
||||
@@ -1561,9 +1561,9 @@ namespace SystemRevivalServer.Migrations
|
||||
b.Navigation("Old_Character");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Server.Data.MatchHistory", b =>
|
||||
modelBuilder.Entity("DataServer.Data.MatchHistory", b =>
|
||||
{
|
||||
b.HasOne("Server.Data.Account", "Account")
|
||||
b.HasOne("DataServer.Data.Account", "Account")
|
||||
.WithMany()
|
||||
.HasForeignKey("AccountId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
@@ -1572,15 +1572,15 @@ namespace SystemRevivalServer.Migrations
|
||||
b.Navigation("Account");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Server.Data.Old_Character", b =>
|
||||
modelBuilder.Entity("DataServer.Data.Old_Character", b =>
|
||||
{
|
||||
b.HasOne("Server.Data.Account", "Account")
|
||||
b.HasOne("DataServer.Data.Account", "Account")
|
||||
.WithMany("Characters")
|
||||
.HasForeignKey("AccountId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("Server.Data.Zone", "Zone")
|
||||
b.HasOne("DataServer.Data.Zone", "Zone")
|
||||
.WithMany()
|
||||
.HasForeignKey("ZoneId")
|
||||
.OnDelete(DeleteBehavior.Restrict)
|
||||
@@ -1591,20 +1591,20 @@ namespace SystemRevivalServer.Migrations
|
||||
b.Navigation("Zone");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Server.Data.PlayerStats", b =>
|
||||
modelBuilder.Entity("DataServer.Data.PlayerStats", b =>
|
||||
{
|
||||
b.HasOne("Server.Data.Account", "Account")
|
||||
b.HasOne("DataServer.Data.Account", "Account")
|
||||
.WithOne()
|
||||
.HasForeignKey("Server.Data.PlayerStats", "AccountId")
|
||||
.HasForeignKey("DataServer.Data.PlayerStats", "AccountId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Account");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Server.Data.Session", b =>
|
||||
modelBuilder.Entity("DataServer.Data.Session", b =>
|
||||
{
|
||||
b.HasOne("Server.Data.Account", "Account")
|
||||
b.HasOne("DataServer.Data.Account", "Account")
|
||||
.WithMany("Sessions")
|
||||
.HasForeignKey("AccountId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
@@ -1613,14 +1613,14 @@ namespace SystemRevivalServer.Migrations
|
||||
b.Navigation("Account");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Server.Data.Account", b =>
|
||||
modelBuilder.Entity("DataServer.Data.Account", b =>
|
||||
{
|
||||
b.Navigation("Characters");
|
||||
|
||||
b.Navigation("Sessions");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Server.Data.Entities.DungeonCharacter", b =>
|
||||
modelBuilder.Entity("DataServer.Data.Entities.DungeonCharacter", b =>
|
||||
{
|
||||
b.Navigation("Inventory");
|
||||
|
||||
@@ -1629,7 +1629,7 @@ namespace SystemRevivalServer.Migrations
|
||||
b.Navigation("Stash");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Server.Data.Entities.DungeonLootTable", b =>
|
||||
modelBuilder.Entity("DataServer.Data.Entities.DungeonLootTable", b =>
|
||||
{
|
||||
b.Navigation("Entries");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user