Additional tools for Admin portal, and huge NameSpace Revamp

This commit is contained in:
dingo
2025-12-26 09:10:43 -05:00
parent ba747d1891
commit 244635ca3f
133 changed files with 2153 additions and 4776 deletions
+104 -104
View File
@@ -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.ClientAsset", b =>
modelBuilder.Entity("DataServer.Data.Entities.ClientAsset", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
@@ -136,7 +136,7 @@ namespace SystemRevivalServer.Migrations
b.ToTable("client_assets");
});
modelBuilder.Entity("Server.Data.Entities.DeathChest", b =>
modelBuilder.Entity("DataServer.Data.Entities.DeathChest", b =>
{
b.Property<ulong>("Id")
.ValueGeneratedOnAdd()
@@ -183,7 +183,7 @@ namespace SystemRevivalServer.Migrations
b.ToTable("dungeon_death_chests");
});
modelBuilder.Entity("Server.Data.Entities.DeathChestItem", b =>
modelBuilder.Entity("DataServer.Data.Entities.DeathChestItem", b =>
{
b.Property<ulong>("Id")
.ValueGeneratedOnAdd()
@@ -218,7 +218,7 @@ namespace SystemRevivalServer.Migrations
b.ToTable("dungeon_death_chest_items");
});
modelBuilder.Entity("Server.Data.Entities.DungeonBeltItem", b =>
modelBuilder.Entity("DataServer.Data.Entities.DungeonBeltItem", b =>
{
b.Property<ulong>("Id")
.ValueGeneratedOnAdd()
@@ -242,7 +242,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()
@@ -346,7 +346,7 @@ namespace SystemRevivalServer.Migrations
b.ToTable("dungeon_characters");
});
modelBuilder.Entity("Server.Data.Entities.DungeonCharacterCraftingSkill", b =>
modelBuilder.Entity("DataServer.Data.Entities.DungeonCharacterCraftingSkill", b =>
{
b.Property<ulong>("Id")
.ValueGeneratedOnAdd()
@@ -376,7 +376,7 @@ namespace SystemRevivalServer.Migrations
b.ToTable("dungeon_character_crafting_skills");
});
modelBuilder.Entity("Server.Data.Entities.DungeonCharacterItem", b =>
modelBuilder.Entity("DataServer.Data.Entities.DungeonCharacterItem", b =>
{
b.Property<ulong>("Id")
.ValueGeneratedOnAdd()
@@ -414,7 +414,7 @@ namespace SystemRevivalServer.Migrations
b.ToTable("dungeon_character_items");
});
modelBuilder.Entity("Server.Data.Entities.DungeonCharacterItemCraftedLink", b =>
modelBuilder.Entity("DataServer.Data.Entities.DungeonCharacterItemCraftedLink", b =>
{
b.Property<ulong>("Id")
.ValueGeneratedOnAdd()
@@ -437,7 +437,7 @@ namespace SystemRevivalServer.Migrations
b.ToTable("dungeon_character_item_crafted_link");
});
modelBuilder.Entity("Server.Data.Entities.DungeonCharacterKnownRecipe", b =>
modelBuilder.Entity("DataServer.Data.Entities.DungeonCharacterKnownRecipe", b =>
{
b.Property<ulong>("Id")
.ValueGeneratedOnAdd()
@@ -466,7 +466,7 @@ namespace SystemRevivalServer.Migrations
b.ToTable("dungeon_character_known_recipes");
});
modelBuilder.Entity("Server.Data.Entities.DungeonCraftedItem", b =>
modelBuilder.Entity("DataServer.Data.Entities.DungeonCraftedItem", b =>
{
b.Property<ulong>("Id")
.ValueGeneratedOnAdd()
@@ -554,7 +554,7 @@ namespace SystemRevivalServer.Migrations
b.ToTable("dungeon_crafted_items");
});
modelBuilder.Entity("Server.Data.Entities.DungeonCraftingRecipe", b =>
modelBuilder.Entity("DataServer.Data.Entities.DungeonCraftingRecipe", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
@@ -613,7 +613,7 @@ namespace SystemRevivalServer.Migrations
b.ToTable("dungeon_crafting_recipes");
});
modelBuilder.Entity("Server.Data.Entities.DungeonCraftingRecipeIngredient", b =>
modelBuilder.Entity("DataServer.Data.Entities.DungeonCraftingRecipeIngredient", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
@@ -642,7 +642,7 @@ namespace SystemRevivalServer.Migrations
b.ToTable("dungeon_crafting_recipe_ingredients");
});
modelBuilder.Entity("Server.Data.Entities.DungeonItemDefinition", b =>
modelBuilder.Entity("DataServer.Data.Entities.DungeonItemDefinition", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
@@ -763,7 +763,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()
@@ -795,7 +795,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()
@@ -839,7 +839,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()
@@ -883,7 +883,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()
@@ -1000,7 +1000,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()
@@ -1029,7 +1029,7 @@ namespace SystemRevivalServer.Migrations
b.ToTable("dungeon_mob_loot_tables");
});
modelBuilder.Entity("Server.Data.Entities.DungeonPersistence", b =>
modelBuilder.Entity("DataServer.Data.Entities.DungeonPersistence", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
@@ -1091,7 +1091,7 @@ namespace SystemRevivalServer.Migrations
b.ToTable("dungeon_instances");
});
modelBuilder.Entity("Server.Data.Entities.DungeonRecipeScroll", b =>
modelBuilder.Entity("DataServer.Data.Entities.DungeonRecipeScroll", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
@@ -1114,7 +1114,7 @@ namespace SystemRevivalServer.Migrations
b.ToTable("dungeon_recipe_scrolls");
});
modelBuilder.Entity("Server.Data.Entities.DungeonSpellDefinition", b =>
modelBuilder.Entity("DataServer.Data.Entities.DungeonSpellDefinition", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
@@ -1186,7 +1186,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()
@@ -1221,7 +1221,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()
@@ -1260,7 +1260,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");
@@ -1379,7 +1379,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");
@@ -1422,7 +1422,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()
@@ -1466,7 +1466,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()
@@ -1514,7 +1514,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()
@@ -1591,7 +1591,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()
@@ -1686,7 +1686,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()
@@ -1764,7 +1764,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()
@@ -1809,7 +1809,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()
@@ -1860,15 +1860,15 @@ namespace SystemRevivalServer.Migrations
b.ToTable("zones", (string)null);
});
modelBuilder.Entity("Server.Data.Entities.DeathChest", b =>
modelBuilder.Entity("DataServer.Data.Entities.DeathChest", b =>
{
b.HasOne("Server.Data.Entities.DungeonCharacter", "OwnerCharacter")
b.HasOne("DataServer.Data.Entities.DungeonCharacter", "OwnerCharacter")
.WithMany()
.HasForeignKey("OwnerCharacterId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("Server.Data.Entities.DungeonCharacter", "VictimCharacter")
b.HasOne("DataServer.Data.Entities.DungeonCharacter", "VictimCharacter")
.WithMany()
.HasForeignKey("VictimCharacterId");
@@ -1877,15 +1877,15 @@ namespace SystemRevivalServer.Migrations
b.Navigation("VictimCharacter");
});
modelBuilder.Entity("Server.Data.Entities.DeathChestItem", b =>
modelBuilder.Entity("DataServer.Data.Entities.DeathChestItem", b =>
{
b.HasOne("Server.Data.Entities.DeathChest", "DeathChest")
b.HasOne("DataServer.Data.Entities.DeathChest", "DeathChest")
.WithMany("Items")
.HasForeignKey("DeathChestId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("Server.Data.Entities.DungeonItemDefinition", "ItemDefinition")
b.HasOne("DataServer.Data.Entities.DungeonItemDefinition", "ItemDefinition")
.WithMany()
.HasForeignKey("ItemDefinitionId")
.OnDelete(DeleteBehavior.Cascade)
@@ -1896,9 +1896,9 @@ namespace SystemRevivalServer.Migrations
b.Navigation("ItemDefinition");
});
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)
@@ -1907,9 +1907,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)
@@ -1918,9 +1918,9 @@ namespace SystemRevivalServer.Migrations
b.Navigation("Account");
});
modelBuilder.Entity("Server.Data.Entities.DungeonCharacterCraftingSkill", b =>
modelBuilder.Entity("DataServer.Data.Entities.DungeonCharacterCraftingSkill", b =>
{
b.HasOne("Server.Data.Entities.DungeonCharacter", "Character")
b.HasOne("DataServer.Data.Entities.DungeonCharacter", "Character")
.WithMany("CraftingSkills")
.HasForeignKey("CharacterId")
.OnDelete(DeleteBehavior.Cascade)
@@ -1929,15 +1929,15 @@ namespace SystemRevivalServer.Migrations
b.Navigation("Character");
});
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)
@@ -1948,15 +1948,15 @@ namespace SystemRevivalServer.Migrations
b.Navigation("ItemDefinition");
});
modelBuilder.Entity("Server.Data.Entities.DungeonCharacterItemCraftedLink", b =>
modelBuilder.Entity("DataServer.Data.Entities.DungeonCharacterItemCraftedLink", b =>
{
b.HasOne("Server.Data.Entities.DungeonCharacterItem", "CharacterItem")
b.HasOne("DataServer.Data.Entities.DungeonCharacterItem", "CharacterItem")
.WithMany()
.HasForeignKey("CharacterItemId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("Server.Data.Entities.DungeonCraftedItem", "CraftedItem")
b.HasOne("DataServer.Data.Entities.DungeonCraftedItem", "CraftedItem")
.WithMany()
.HasForeignKey("CraftedItemId")
.OnDelete(DeleteBehavior.Cascade)
@@ -1967,15 +1967,15 @@ namespace SystemRevivalServer.Migrations
b.Navigation("CraftedItem");
});
modelBuilder.Entity("Server.Data.Entities.DungeonCharacterKnownRecipe", b =>
modelBuilder.Entity("DataServer.Data.Entities.DungeonCharacterKnownRecipe", b =>
{
b.HasOne("Server.Data.Entities.DungeonCharacter", "Character")
b.HasOne("DataServer.Data.Entities.DungeonCharacter", "Character")
.WithMany("KnownRecipes")
.HasForeignKey("CharacterId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("Server.Data.Entities.DungeonCraftingRecipe", "Recipe")
b.HasOne("DataServer.Data.Entities.DungeonCraftingRecipe", "Recipe")
.WithMany()
.HasForeignKey("RecipeId")
.OnDelete(DeleteBehavior.Cascade)
@@ -1986,19 +1986,19 @@ namespace SystemRevivalServer.Migrations
b.Navigation("Recipe");
});
modelBuilder.Entity("Server.Data.Entities.DungeonCraftedItem", b =>
modelBuilder.Entity("DataServer.Data.Entities.DungeonCraftedItem", b =>
{
b.HasOne("Server.Data.Entities.DungeonItemDefinition", "BaseItemDefinition")
b.HasOne("DataServer.Data.Entities.DungeonItemDefinition", "BaseItemDefinition")
.WithMany()
.HasForeignKey("BaseItemDefinitionId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("Server.Data.Entities.DungeonCharacter", "Crafter")
b.HasOne("DataServer.Data.Entities.DungeonCharacter", "Crafter")
.WithMany()
.HasForeignKey("CrafterId");
b.HasOne("Server.Data.Entities.DungeonCraftingRecipe", "Recipe")
b.HasOne("DataServer.Data.Entities.DungeonCraftingRecipe", "Recipe")
.WithMany()
.HasForeignKey("RecipeId");
@@ -2009,24 +2009,24 @@ namespace SystemRevivalServer.Migrations
b.Navigation("Recipe");
});
modelBuilder.Entity("Server.Data.Entities.DungeonCraftingRecipe", b =>
modelBuilder.Entity("DataServer.Data.Entities.DungeonCraftingRecipe", b =>
{
b.HasOne("Server.Data.Entities.DungeonItemDefinition", "OutputItem")
b.HasOne("DataServer.Data.Entities.DungeonItemDefinition", "OutputItem")
.WithMany()
.HasForeignKey("OutputItemId");
b.Navigation("OutputItem");
});
modelBuilder.Entity("Server.Data.Entities.DungeonCraftingRecipeIngredient", b =>
modelBuilder.Entity("DataServer.Data.Entities.DungeonCraftingRecipeIngredient", 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.DungeonCraftingRecipe", "Recipe")
b.HasOne("DataServer.Data.Entities.DungeonCraftingRecipe", "Recipe")
.WithMany("Ingredients")
.HasForeignKey("RecipeId")
.OnDelete(DeleteBehavior.Cascade)
@@ -2037,15 +2037,15 @@ namespace SystemRevivalServer.Migrations
b.Navigation("Recipe");
});
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");
@@ -2054,15 +2054,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)
@@ -2073,15 +2073,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)
@@ -2092,24 +2092,24 @@ namespace SystemRevivalServer.Migrations
b.Navigation("MobDefinition");
});
modelBuilder.Entity("Server.Data.Entities.DungeonPersistence", b =>
modelBuilder.Entity("DataServer.Data.Entities.DungeonPersistence", b =>
{
b.HasOne("Server.Data.Entities.DungeonCharacter", "Creator")
b.HasOne("DataServer.Data.Entities.DungeonCharacter", "Creator")
.WithMany()
.HasForeignKey("CreatorId");
b.Navigation("Creator");
});
modelBuilder.Entity("Server.Data.Entities.DungeonRecipeScroll", b =>
modelBuilder.Entity("DataServer.Data.Entities.DungeonRecipeScroll", 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.DungeonCraftingRecipe", "Recipe")
b.HasOne("DataServer.Data.Entities.DungeonCraftingRecipe", "Recipe")
.WithMany()
.HasForeignKey("RecipeId")
.OnDelete(DeleteBehavior.Cascade)
@@ -2120,15 +2120,15 @@ namespace SystemRevivalServer.Migrations
b.Navigation("Recipe");
});
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");
@@ -2137,15 +2137,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)
@@ -2156,9 +2156,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)
@@ -2167,15 +2167,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)
@@ -2186,9 +2186,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)
@@ -2197,15 +2197,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)
@@ -2216,20 +2216,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)
@@ -2238,19 +2238,19 @@ 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.DeathChest", b =>
modelBuilder.Entity("DataServer.Data.Entities.DeathChest", b =>
{
b.Navigation("Items");
});
modelBuilder.Entity("Server.Data.Entities.DungeonCharacter", b =>
modelBuilder.Entity("DataServer.Data.Entities.DungeonCharacter", b =>
{
b.Navigation("CraftingSkills");
@@ -2263,12 +2263,12 @@ namespace SystemRevivalServer.Migrations
b.Navigation("Stash");
});
modelBuilder.Entity("Server.Data.Entities.DungeonCraftingRecipe", b =>
modelBuilder.Entity("DataServer.Data.Entities.DungeonCraftingRecipe", b =>
{
b.Navigation("Ingredients");
});
modelBuilder.Entity("Server.Data.Entities.DungeonLootTable", b =>
modelBuilder.Entity("DataServer.Data.Entities.DungeonLootTable", b =>
{
b.Navigation("Entries");
});