Looooot!
This commit is contained in:
@@ -362,6 +362,94 @@ namespace SystemRevivalServer.Migrations
|
||||
b.ToTable("dungeon_learned_spells");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Server.Data.Entities.DungeonLootTable", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int");
|
||||
|
||||
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<string>("Description")
|
||||
.IsRequired()
|
||||
.HasMaxLength(256)
|
||||
.HasColumnType("varchar(256)");
|
||||
|
||||
b.Property<float>("DropChanceMultiplier")
|
||||
.HasColumnType("float");
|
||||
|
||||
b.Property<bool>("GuaranteedDrop")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
b.Property<bool>("IsEnabled")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
b.Property<int>("MaxDrops")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("MaxTier")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("MinDrops")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("MinTier")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasMaxLength(64)
|
||||
.HasColumnType("varchar(64)");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("dungeon_loot_tables");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Server.Data.Entities.DungeonLootTableEntry", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int");
|
||||
|
||||
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<float>("DropChance")
|
||||
.HasColumnType("float");
|
||||
|
||||
b.Property<float>("DropChancePerTier")
|
||||
.HasColumnType("float");
|
||||
|
||||
b.Property<bool>("Guaranteed")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
b.Property<int>("ItemDefinitionId")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("LootTableId")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<float>("MaxDropChance")
|
||||
.HasColumnType("float");
|
||||
|
||||
b.Property<int>("MaxQuantity")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("MinQuantity")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("Weight")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("ItemDefinitionId");
|
||||
|
||||
b.HasIndex("LootTableId");
|
||||
|
||||
b.ToTable("dungeon_loot_table_entries");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Server.Data.Entities.DungeonMobDefinition", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
@@ -506,6 +594,35 @@ namespace SystemRevivalServer.Migrations
|
||||
b.ToTable("dungeon_mob_definitions");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Server.Data.Entities.DungeonMobLootTable", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int");
|
||||
|
||||
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<int>("LootTableId")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("MobDefinitionId")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("Priority")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<float>("RollChance")
|
||||
.HasColumnType("float");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("LootTableId");
|
||||
|
||||
b.HasIndex("MobDefinitionId");
|
||||
|
||||
b.ToTable("dungeon_mob_loot_tables");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Server.Data.Entities.DungeonSpellDefinition", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
@@ -1297,6 +1414,44 @@ namespace SystemRevivalServer.Migrations
|
||||
b.Navigation("Definition");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Server.Data.Entities.DungeonLootTableEntry", b =>
|
||||
{
|
||||
b.HasOne("Server.Data.Entities.DungeonItemDefinition", "ItemDefinition")
|
||||
.WithMany()
|
||||
.HasForeignKey("ItemDefinitionId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("Server.Data.Entities.DungeonLootTable", "LootTable")
|
||||
.WithMany("Entries")
|
||||
.HasForeignKey("LootTableId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("ItemDefinition");
|
||||
|
||||
b.Navigation("LootTable");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Server.Data.Entities.DungeonMobLootTable", b =>
|
||||
{
|
||||
b.HasOne("Server.Data.Entities.DungeonLootTable", "LootTable")
|
||||
.WithMany()
|
||||
.HasForeignKey("LootTableId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("Server.Data.Entities.DungeonMobDefinition", "MobDefinition")
|
||||
.WithMany()
|
||||
.HasForeignKey("MobDefinitionId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("LootTable");
|
||||
|
||||
b.Navigation("MobDefinition");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Server.Data.Entities.DungeonStashItem", b =>
|
||||
{
|
||||
b.HasOne("Server.Data.Entities.DungeonCharacter", "Character")
|
||||
@@ -1430,6 +1585,11 @@ namespace SystemRevivalServer.Migrations
|
||||
|
||||
b.Navigation("Stash");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Server.Data.Entities.DungeonLootTable", b =>
|
||||
{
|
||||
b.Navigation("Entries");
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user