diff --git a/Migrations/GameDbContextModelSnapshot.cs b/Migrations/GameDbContextModelSnapshot.cs index 0e3076e..ec63ad0 100644 --- a/Migrations/GameDbContextModelSnapshot.cs +++ b/Migrations/GameDbContextModelSnapshot.cs @@ -1099,12 +1099,21 @@ namespace SystemRevivalServer.Migrations b.Property("IsEnabled") .HasColumnType("tinyint(1)"); + b.Property("GoldDropChance") + .HasColumnType("float"); + + b.Property("MaxGold") + .HasColumnType("int"); + b.Property("MaxDrops") .HasColumnType("int"); b.Property("MaxTier") .HasColumnType("int"); + b.Property("MinGold") + .HasColumnType("int"); + b.Property("MinDrops") .HasColumnType("int"); @@ -1327,6 +1336,327 @@ namespace SystemRevivalServer.Migrations b.ToTable("dungeon_mob_loot_tables"); }); + modelBuilder.Entity("DataServer.Data.Entities.DungeonNpcDefinition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property("Id")); + + b.Property("AbilityDefinitionIdsJson") + .IsRequired() + .HasMaxLength(2048) + .HasColumnType("varchar(2048)"); + + b.Property("AttackPower") + .HasColumnType("int"); + + b.Property("BehaviorMode") + .HasColumnType("int"); + + b.Property("CanShop") + .HasColumnType("tinyint(1)"); + + b.Property("CanWander") + .HasColumnType("tinyint(1)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)"); + + b.Property("Defense") + .HasColumnType("int"); + + b.Property("Dexterity") + .HasColumnType("int"); + + b.Property("Description") + .IsRequired() + .HasMaxLength(256) + .HasColumnType("varchar(256)"); + + b.Property("DialogTreeId") + .HasColumnType("int"); + + b.Property("Endurance") + .HasColumnType("int"); + + b.Property("HasDialog") + .HasColumnType("tinyint(1)"); + + b.Property("Intelligence") + .HasColumnType("int"); + + b.Property("IsEnabled") + .HasColumnType("tinyint(1)"); + + b.Property("IsKillable") + .HasColumnType("tinyint(1)"); + + b.Property("Key") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("varchar(64)"); + + b.Property("Level") + .HasColumnType("int"); + + b.Property("LootTableId") + .HasColumnType("int"); + + b.Property("MaxHealth") + .HasColumnType("int"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("varchar(64)"); + + b.Property("OnAttackBehavior") + .HasColumnType("int"); + + b.Property("ResistancesJson") + .IsRequired() + .HasMaxLength(2048) + .HasColumnType("varchar(2048)"); + + b.Property("Scale") + .HasColumnType("float"); + + b.Property("ShopId") + .HasColumnType("int"); + + b.Property("SpriteConfigJson") + .HasMaxLength(4096) + .HasColumnType("varchar(4096)"); + + b.Property("Strength") + .HasColumnType("int"); + + b.Property("TintColor") + .IsRequired() + .HasMaxLength(16) + .HasColumnType("varchar(16)"); + + b.Property("UpdatedAt") + .HasColumnType("datetime(6)"); + + b.Property("WanderIntervalSeconds") + .HasColumnType("float"); + + b.Property("WanderRadiusPx") + .HasColumnType("float"); + + b.Property("Wisdom") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("DialogTreeId"); + + b.HasIndex("LootTableId"); + + b.HasIndex("ShopId"); + + b.ToTable("dungeon_npc_definitions"); + }); + + modelBuilder.Entity("DataServer.Data.Entities.DungeonNpcDialogNode", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property("Id")); + + b.Property("DialogTreeId") + .HasColumnType("int"); + + b.Property("IsRoot") + .HasColumnType("tinyint(1)"); + + b.Property("IsTerminal") + .HasColumnType("tinyint(1)"); + + b.Property("NodeKey") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("varchar(128)"); + + b.Property("RewardItemDefinitionId") + .HasColumnType("int"); + + b.Property("RewardItemQuantity") + .HasColumnType("int"); + + b.Property("RewardQuestKey") + .HasMaxLength(64) + .HasColumnType("varchar(64)"); + + b.Property("RewardGold") + .HasColumnType("bigint"); + + b.Property("RewardType") + .HasMaxLength(64) + .HasColumnType("varchar(64)"); + + b.Property("RewardXp") + .HasColumnType("bigint"); + + b.Property("Text") + .IsRequired() + .HasMaxLength(2048) + .HasColumnType("varchar(2048)"); + + b.HasKey("Id"); + + b.HasIndex("DialogTreeId"); + + b.ToTable("dungeon_npc_dialog_nodes"); + }); + + modelBuilder.Entity("DataServer.Data.Entities.DungeonNpcDialogOption", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property("Id")); + + b.Property("ConditionQuantity") + .HasColumnType("int"); + + b.Property("ConditionValue") + .HasMaxLength(64) + .HasColumnType("varchar(64)"); + + b.Property("ConsumeConditionItem") + .HasColumnType("tinyint(1)"); + + b.Property("ConditionType") + .HasColumnType("int"); + + b.Property("NextNodeId") + .HasColumnType("int"); + + b.Property("NodeId") + .HasColumnType("int"); + + b.Property("PlayerText") + .IsRequired() + .HasMaxLength(256) + .HasColumnType("varchar(256)"); + + b.Property("SortOrder") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("NodeId"); + + b.ToTable("dungeon_npc_dialog_options"); + }); + + modelBuilder.Entity("DataServer.Data.Entities.DungeonNpcDialogTree", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property("Id")); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)"); + + b.Property("Description") + .IsRequired() + .HasMaxLength(256) + .HasColumnType("varchar(256)"); + + b.Property("IsEnabled") + .HasColumnType("tinyint(1)"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("varchar(64)"); + + b.Property("UpdatedAt") + .HasColumnType("datetime(6)"); + + b.HasKey("Id"); + + b.ToTable("dungeon_npc_dialog_trees"); + }); + + modelBuilder.Entity("DataServer.Data.Entities.DungeonNpcShop", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property("Id")); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)"); + + b.Property("IsEnabled") + .HasColumnType("tinyint(1)"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("varchar(64)"); + + b.Property("UpdatedAt") + .HasColumnType("datetime(6)"); + + b.HasKey("Id"); + + b.ToTable("dungeon_npc_shops"); + }); + + modelBuilder.Entity("DataServer.Data.Entities.DungeonNpcShopItem", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property("Id")); + + b.Property("ItemDefinitionId") + .HasColumnType("int"); + + b.Property("LastRestockAt") + .HasColumnType("datetime(6)"); + + b.Property("PriceGold") + .HasColumnType("bigint"); + + b.Property("Quantity") + .HasColumnType("int"); + + b.Property("RestockIntervalSeconds") + .HasColumnType("int"); + + b.Property("Restocks") + .HasColumnType("tinyint(1)"); + + b.Property("ShopId") + .HasColumnType("int"); + + b.Property("SlotIndex") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("ItemDefinitionId"); + + b.HasIndex("ShopId"); + + b.ToTable("dungeon_npc_shop_items"); + }); + modelBuilder.Entity("DataServer.Data.Entities.DungeonObjectDefinition", b => { b.Property("Id") @@ -1946,12 +2276,6 @@ namespace SystemRevivalServer.Migrations b.Property("EffectDuration") .HasColumnType("float"); - b.Property("HpThresholdAbove") - .HasColumnType("float"); - - b.Property("HpThresholdBelow") - .HasColumnType("float"); - b.Property("HazardTintColor") .IsRequired() .HasMaxLength(16) @@ -1960,6 +2284,12 @@ namespace SystemRevivalServer.Migrations b.Property("HazardTintOpacity") .HasColumnType("float"); + b.Property("HpThresholdAbove") + .HasColumnType("float"); + + b.Property("HpThresholdBelow") + .HasColumnType("float"); + b.Property("IsEnabled") .HasColumnType("tinyint(1)"); @@ -3104,6 +3434,68 @@ namespace SystemRevivalServer.Migrations b.Navigation("MobDefinition"); }); + modelBuilder.Entity("DataServer.Data.Entities.DungeonNpcDefinition", b => + { + b.HasOne("DataServer.Data.Entities.DungeonNpcDialogTree", "DialogTree") + .WithMany() + .HasForeignKey("DialogTreeId"); + + b.HasOne("DataServer.Data.Entities.DungeonLootTable", "LootTable") + .WithMany() + .HasForeignKey("LootTableId"); + + b.HasOne("DataServer.Data.Entities.DungeonNpcShop", "Shop") + .WithMany() + .HasForeignKey("ShopId"); + + b.Navigation("DialogTree"); + + b.Navigation("LootTable"); + + b.Navigation("Shop"); + }); + + modelBuilder.Entity("DataServer.Data.Entities.DungeonNpcDialogNode", b => + { + b.HasOne("DataServer.Data.Entities.DungeonNpcDialogTree", "DialogTree") + .WithMany("Nodes") + .HasForeignKey("DialogTreeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DialogTree"); + }); + + modelBuilder.Entity("DataServer.Data.Entities.DungeonNpcDialogOption", b => + { + b.HasOne("DataServer.Data.Entities.DungeonNpcDialogNode", "Node") + .WithMany("Options") + .HasForeignKey("NodeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Node"); + }); + + modelBuilder.Entity("DataServer.Data.Entities.DungeonNpcShopItem", b => + { + b.HasOne("DataServer.Data.Entities.DungeonItemDefinition", "ItemDefinition") + .WithMany() + .HasForeignKey("ItemDefinitionId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("DataServer.Data.Entities.DungeonNpcShop", "Shop") + .WithMany("Items") + .HasForeignKey("ShopId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("ItemDefinition"); + + b.Navigation("Shop"); + }); + modelBuilder.Entity("DataServer.Data.Entities.DungeonPersistence", b => { b.HasOne("DataServer.Data.Entities.DungeonCharacter", "Creator") @@ -3348,6 +3740,21 @@ namespace SystemRevivalServer.Migrations b.Navigation("Entries"); }); + modelBuilder.Entity("DataServer.Data.Entities.DungeonNpcDialogNode", b => + { + b.Navigation("Options"); + }); + + modelBuilder.Entity("DataServer.Data.Entities.DungeonNpcDialogTree", b => + { + b.Navigation("Nodes"); + }); + + modelBuilder.Entity("DataServer.Data.Entities.DungeonNpcShop", b => + { + b.Navigation("Items"); + }); + modelBuilder.Entity("DataServer.Data.Entities.DungeonMobDefinition", b => { b.Navigation("AbilityAssignments");