Sync EF snapshot for NPC and loot gold migration
This commit is contained in:
@@ -1099,12 +1099,21 @@ namespace SystemRevivalServer.Migrations
|
||||
b.Property<bool>("IsEnabled")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
b.Property<float>("GoldDropChance")
|
||||
.HasColumnType("float");
|
||||
|
||||
b.Property<int>("MaxGold")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("MaxDrops")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("MaxTier")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("MinGold")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("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<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int");
|
||||
|
||||
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<string>("AbilityDefinitionIdsJson")
|
||||
.IsRequired()
|
||||
.HasMaxLength(2048)
|
||||
.HasColumnType("varchar(2048)");
|
||||
|
||||
b.Property<int>("AttackPower")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("BehaviorMode")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<bool>("CanShop")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
b.Property<bool>("CanWander")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
b.Property<DateTime>("CreatedAt")
|
||||
.HasColumnType("datetime(6)");
|
||||
|
||||
b.Property<int>("Defense")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("Dexterity")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("Description")
|
||||
.IsRequired()
|
||||
.HasMaxLength(256)
|
||||
.HasColumnType("varchar(256)");
|
||||
|
||||
b.Property<int?>("DialogTreeId")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("Endurance")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<bool>("HasDialog")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
b.Property<int>("Intelligence")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<bool>("IsEnabled")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
b.Property<bool>("IsKillable")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
b.Property<string>("Key")
|
||||
.IsRequired()
|
||||
.HasMaxLength(64)
|
||||
.HasColumnType("varchar(64)");
|
||||
|
||||
b.Property<int>("Level")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int?>("LootTableId")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("MaxHealth")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasMaxLength(64)
|
||||
.HasColumnType("varchar(64)");
|
||||
|
||||
b.Property<int>("OnAttackBehavior")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("ResistancesJson")
|
||||
.IsRequired()
|
||||
.HasMaxLength(2048)
|
||||
.HasColumnType("varchar(2048)");
|
||||
|
||||
b.Property<float>("Scale")
|
||||
.HasColumnType("float");
|
||||
|
||||
b.Property<int?>("ShopId")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("SpriteConfigJson")
|
||||
.HasMaxLength(4096)
|
||||
.HasColumnType("varchar(4096)");
|
||||
|
||||
b.Property<int>("Strength")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("TintColor")
|
||||
.IsRequired()
|
||||
.HasMaxLength(16)
|
||||
.HasColumnType("varchar(16)");
|
||||
|
||||
b.Property<DateTime>("UpdatedAt")
|
||||
.HasColumnType("datetime(6)");
|
||||
|
||||
b.Property<float>("WanderIntervalSeconds")
|
||||
.HasColumnType("float");
|
||||
|
||||
b.Property<float>("WanderRadiusPx")
|
||||
.HasColumnType("float");
|
||||
|
||||
b.Property<int>("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<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int");
|
||||
|
||||
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<int>("DialogTreeId")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<bool>("IsRoot")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
b.Property<bool>("IsTerminal")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
b.Property<string>("NodeKey")
|
||||
.IsRequired()
|
||||
.HasMaxLength(128)
|
||||
.HasColumnType("varchar(128)");
|
||||
|
||||
b.Property<int?>("RewardItemDefinitionId")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("RewardItemQuantity")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("RewardQuestKey")
|
||||
.HasMaxLength(64)
|
||||
.HasColumnType("varchar(64)");
|
||||
|
||||
b.Property<long>("RewardGold")
|
||||
.HasColumnType("bigint");
|
||||
|
||||
b.Property<string>("RewardType")
|
||||
.HasMaxLength(64)
|
||||
.HasColumnType("varchar(64)");
|
||||
|
||||
b.Property<long>("RewardXp")
|
||||
.HasColumnType("bigint");
|
||||
|
||||
b.Property<string>("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<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int");
|
||||
|
||||
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<int>("ConditionQuantity")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("ConditionValue")
|
||||
.HasMaxLength(64)
|
||||
.HasColumnType("varchar(64)");
|
||||
|
||||
b.Property<bool>("ConsumeConditionItem")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
b.Property<int>("ConditionType")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int?>("NextNodeId")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("NodeId")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("PlayerText")
|
||||
.IsRequired()
|
||||
.HasMaxLength(256)
|
||||
.HasColumnType("varchar(256)");
|
||||
|
||||
b.Property<int>("SortOrder")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("NodeId");
|
||||
|
||||
b.ToTable("dungeon_npc_dialog_options");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("DataServer.Data.Entities.DungeonNpcDialogTree", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int");
|
||||
|
||||
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<DateTime>("CreatedAt")
|
||||
.HasColumnType("datetime(6)");
|
||||
|
||||
b.Property<string>("Description")
|
||||
.IsRequired()
|
||||
.HasMaxLength(256)
|
||||
.HasColumnType("varchar(256)");
|
||||
|
||||
b.Property<bool>("IsEnabled")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasMaxLength(64)
|
||||
.HasColumnType("varchar(64)");
|
||||
|
||||
b.Property<DateTime>("UpdatedAt")
|
||||
.HasColumnType("datetime(6)");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("dungeon_npc_dialog_trees");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("DataServer.Data.Entities.DungeonNpcShop", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int");
|
||||
|
||||
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<DateTime>("CreatedAt")
|
||||
.HasColumnType("datetime(6)");
|
||||
|
||||
b.Property<bool>("IsEnabled")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasMaxLength(64)
|
||||
.HasColumnType("varchar(64)");
|
||||
|
||||
b.Property<DateTime>("UpdatedAt")
|
||||
.HasColumnType("datetime(6)");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("dungeon_npc_shops");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("DataServer.Data.Entities.DungeonNpcShopItem", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int");
|
||||
|
||||
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<int>("ItemDefinitionId")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<DateTime?>("LastRestockAt")
|
||||
.HasColumnType("datetime(6)");
|
||||
|
||||
b.Property<long>("PriceGold")
|
||||
.HasColumnType("bigint");
|
||||
|
||||
b.Property<int>("Quantity")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("RestockIntervalSeconds")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<bool>("Restocks")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
b.Property<int>("ShopId")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("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<int>("Id")
|
||||
@@ -1946,12 +2276,6 @@ namespace SystemRevivalServer.Migrations
|
||||
b.Property<float>("EffectDuration")
|
||||
.HasColumnType("float");
|
||||
|
||||
b.Property<float?>("HpThresholdAbove")
|
||||
.HasColumnType("float");
|
||||
|
||||
b.Property<float?>("HpThresholdBelow")
|
||||
.HasColumnType("float");
|
||||
|
||||
b.Property<string>("HazardTintColor")
|
||||
.IsRequired()
|
||||
.HasMaxLength(16)
|
||||
@@ -1960,6 +2284,12 @@ namespace SystemRevivalServer.Migrations
|
||||
b.Property<float>("HazardTintOpacity")
|
||||
.HasColumnType("float");
|
||||
|
||||
b.Property<float?>("HpThresholdAbove")
|
||||
.HasColumnType("float");
|
||||
|
||||
b.Property<float?>("HpThresholdBelow")
|
||||
.HasColumnType("float");
|
||||
|
||||
b.Property<bool>("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");
|
||||
|
||||
Reference in New Issue
Block a user