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()
|
||||
@@ -212,7 +212,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()
|
||||
@@ -250,7 +250,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()
|
||||
@@ -363,7 +363,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()
|
||||
@@ -395,7 +395,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()
|
||||
@@ -439,7 +439,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()
|
||||
@@ -483,7 +483,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()
|
||||
@@ -627,7 +627,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()
|
||||
@@ -656,7 +656,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()
|
||||
@@ -728,7 +728,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()
|
||||
@@ -763,7 +763,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()
|
||||
@@ -802,7 +802,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");
|
||||
@@ -921,7 +921,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");
|
||||
@@ -964,7 +964,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()
|
||||
@@ -1008,7 +1008,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()
|
||||
@@ -1056,7 +1056,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()
|
||||
@@ -1133,7 +1133,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()
|
||||
@@ -1228,7 +1228,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()
|
||||
@@ -1306,7 +1306,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()
|
||||
@@ -1351,7 +1351,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()
|
||||
@@ -1402,9 +1402,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)
|
||||
@@ -1413,9 +1413,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)
|
||||
@@ -1424,15 +1424,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)
|
||||
@@ -1443,15 +1443,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");
|
||||
|
||||
@@ -1460,15 +1460,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)
|
||||
@@ -1479,15 +1479,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)
|
||||
@@ -1498,15 +1498,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");
|
||||
|
||||
@@ -1515,15 +1515,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)
|
||||
@@ -1534,9 +1534,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)
|
||||
@@ -1545,15 +1545,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)
|
||||
@@ -1564,9 +1564,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)
|
||||
@@ -1575,15 +1575,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)
|
||||
@@ -1594,20 +1594,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)
|
||||
@@ -1616,14 +1616,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");
|
||||
|
||||
@@ -1632,7 +1632,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