3372 lines
118 KiB
C#
3372 lines
118 KiB
C#
// <auto-generated />
|
|
using System;
|
|
using DataServer.Data;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Metadata;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
|
|
#nullable disable
|
|
|
|
namespace SystemRevivalServer.Migrations
|
|
{
|
|
[DbContext(typeof(GameDbContext))]
|
|
[Migration("20260211201402_missingcolumn")]
|
|
partial class missingcolumn
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder
|
|
.HasAnnotation("ProductVersion", "9.0.10")
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 64);
|
|
|
|
MySqlModelBuilderExtensions.AutoIncrementColumns(modelBuilder);
|
|
|
|
modelBuilder.Entity("DataServer.Data.Account", b =>
|
|
{
|
|
b.Property<ulong>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint unsigned");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<ulong>("Id"));
|
|
|
|
b.Property<DateTime?>("BannedUntil")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("datetime(6)")
|
|
.HasDefaultValueSql("CURRENT_TIMESTAMP(6)");
|
|
|
|
b.Property<string>("Email")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("varchar(255)");
|
|
|
|
b.Property<bool>("IsBanned")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<byte[]>("PasswordHash")
|
|
.IsRequired()
|
|
.HasColumnType("varbinary(64)");
|
|
|
|
b.Property<byte[]>("PasswordSalt")
|
|
.IsRequired()
|
|
.HasColumnType("varbinary(32)");
|
|
|
|
b.Property<int>("Role")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int")
|
|
.HasDefaultValue(0);
|
|
|
|
b.Property<DateTime>("UpdatedAt")
|
|
.ValueGeneratedOnAddOrUpdate()
|
|
.HasColumnType("datetime(6)")
|
|
.HasDefaultValueSql("CURRENT_TIMESTAMP(6)");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlComputedColumn(b.Property<DateTime>("UpdatedAt"));
|
|
|
|
b.Property<string>("Username")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("varchar(32)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("Email")
|
|
.IsUnique();
|
|
|
|
b.HasIndex("Username")
|
|
.IsUnique();
|
|
|
|
b.ToTable("accounts", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Entities.BuilderRoomTemplate", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("Id"));
|
|
|
|
b.Property<bool>("AllowMirror")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<bool>("AllowRotation")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<string>("Biome")
|
|
.HasMaxLength(32)
|
|
.HasColumnType("varchar(32)");
|
|
|
|
b.Property<string>("ConnectionPointsJson")
|
|
.HasColumnType("json");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<string>("Description")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("varchar(256)");
|
|
|
|
b.Property<int?>("ExitPortalX")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int?>("ExitPortalY")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("Height")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<bool>("IsEnabled")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<string>("ItemSpawnsJson")
|
|
.HasColumnType("json");
|
|
|
|
b.Property<int>("MaxConnections")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("MaxTier")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("MinConnections")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("MinTier")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("MobSpawnsJson")
|
|
.HasColumnType("json");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("varchar(64)");
|
|
|
|
b.Property<string>("ObjectPlacementsJson")
|
|
.HasColumnType("json");
|
|
|
|
b.Property<int?>("PlayerSpawnX")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int?>("PlayerSpawnY")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Tags")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("varchar(256)");
|
|
|
|
b.Property<string>("TileGridJson")
|
|
.HasColumnType("json");
|
|
|
|
b.Property<string>("TilePlacementsJson")
|
|
.HasColumnType("json");
|
|
|
|
b.Property<int>("Type")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<DateTime>("UpdatedAt")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<int>("Weight")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("Width")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("builder_room_templates");
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Entities.ClientAsset", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("Id"));
|
|
|
|
b.Property<int>("AssetType")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("CdnPath")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("varchar(256)");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<string>("FileHash")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("varchar(32)");
|
|
|
|
b.Property<string>("FilePath")
|
|
.IsRequired()
|
|
.HasMaxLength(256)
|
|
.HasColumnType("varchar(256)");
|
|
|
|
b.Property<long>("FileSize")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<bool>("IsEnabled")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<bool>("IsRequired")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<string>("MinClientVersion")
|
|
.HasMaxLength(16)
|
|
.HasColumnType("varchar(16)");
|
|
|
|
b.Property<DateTime>("UpdatedAt")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<int>("Version")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("client_assets");
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Entities.DamageResistanceType", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("Id"));
|
|
|
|
b.Property<string>("Color")
|
|
.IsRequired()
|
|
.HasMaxLength(16)
|
|
.HasColumnType("varchar(16)");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<string>("Description")
|
|
.IsRequired()
|
|
.HasMaxLength(256)
|
|
.HasColumnType("varchar(256)");
|
|
|
|
b.Property<string>("DisplayName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("varchar(64)");
|
|
|
|
b.Property<string>("IconPath")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("varchar(256)");
|
|
|
|
b.Property<bool>("IsEnabled")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<string>("Key")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("varchar(32)");
|
|
|
|
b.Property<int>("SortOrder")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("damage_resistance_types");
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Entities.DeathChest", b =>
|
|
{
|
|
b.Property<ulong>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint unsigned");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<ulong>("Id"));
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<Guid>("DungeonInstanceId")
|
|
.HasColumnType("char(36)");
|
|
|
|
b.Property<DateTime?>("EmptiedAt")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<long>("GoldAmount")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<bool>("IsEmpty")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<ulong>("OwnerCharacterId")
|
|
.HasColumnType("bigint unsigned");
|
|
|
|
b.Property<ulong?>("VictimCharacterId")
|
|
.HasColumnType("bigint unsigned");
|
|
|
|
b.Property<int?>("VictimMobDefinitionId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<float>("X")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("Y")
|
|
.HasColumnType("float");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("OwnerCharacterId");
|
|
|
|
b.HasIndex("VictimCharacterId");
|
|
|
|
b.ToTable("dungeon_death_chests");
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Entities.DeathChestItem", b =>
|
|
{
|
|
b.Property<ulong>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint unsigned");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<ulong>("Id"));
|
|
|
|
b.Property<ulong>("DeathChestId")
|
|
.HasColumnType("bigint unsigned");
|
|
|
|
b.Property<bool>("IsTaken")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<int>("ItemDefinitionId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("Quantity")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("SlotIndex")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<DateTime?>("TakenAt")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("DeathChestId");
|
|
|
|
b.HasIndex("ItemDefinitionId");
|
|
|
|
b.ToTable("dungeon_death_chest_items");
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Entities.DungeonBeltItem", b =>
|
|
{
|
|
b.Property<ulong>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint unsigned");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<ulong>("Id"));
|
|
|
|
b.Property<ulong>("CharacterId")
|
|
.HasColumnType("bigint unsigned");
|
|
|
|
b.Property<int>("InventorySlotIndex")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("SlotIndex")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("CharacterId");
|
|
|
|
b.ToTable("dungeon_belt_items");
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Entities.DungeonCharacter", b =>
|
|
{
|
|
b.Property<ulong>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint unsigned");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<ulong>("Id"));
|
|
|
|
b.Property<ulong>("AccountId")
|
|
.HasColumnType("bigint unsigned");
|
|
|
|
b.Property<int>("BossesKilled")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<int>("CurrentHealth")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("CurrentMana")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("Dexterity")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("DungeonsCompleted")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("Endurance")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<ulong?>("EquippedBoots")
|
|
.HasColumnType("bigint unsigned");
|
|
|
|
b.Property<ulong?>("EquippedChest")
|
|
.HasColumnType("bigint unsigned");
|
|
|
|
b.Property<ulong?>("EquippedGloves")
|
|
.HasColumnType("bigint unsigned");
|
|
|
|
b.Property<ulong?>("EquippedHead")
|
|
.HasColumnType("bigint unsigned");
|
|
|
|
b.Property<ulong?>("EquippedLegs")
|
|
.HasColumnType("bigint unsigned");
|
|
|
|
b.Property<ulong?>("EquippedNecklace")
|
|
.HasColumnType("bigint unsigned");
|
|
|
|
b.Property<ulong?>("EquippedOffhand")
|
|
.HasColumnType("bigint unsigned");
|
|
|
|
b.Property<ulong?>("EquippedQuiver")
|
|
.HasColumnType("bigint unsigned");
|
|
|
|
b.Property<ulong?>("EquippedRing1")
|
|
.HasColumnType("bigint unsigned");
|
|
|
|
b.Property<ulong?>("EquippedRing2")
|
|
.HasColumnType("bigint unsigned");
|
|
|
|
b.Property<ulong?>("EquippedWeapon")
|
|
.HasColumnType("bigint unsigned");
|
|
|
|
b.Property<long>("Experience")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<long>("Gold")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<int>("Intelligence")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<DateTime>("LastPlayedAt")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<int>("Level")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("varchar(32)");
|
|
|
|
b.Property<int>("PlayersKilled")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("ResistancesJson")
|
|
.IsRequired()
|
|
.HasMaxLength(1024)
|
|
.HasColumnType("varchar(1024)");
|
|
|
|
b.Property<int>("Strength")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("TotalDeaths")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("TotalKills")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("UnspentStatPoints")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("Wisdom")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("AccountId");
|
|
|
|
b.ToTable("dungeon_characters");
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Entities.DungeonCharacterCraftingSkill", b =>
|
|
{
|
|
b.Property<ulong>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint unsigned");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<ulong>("Id"));
|
|
|
|
b.Property<ulong>("CharacterId")
|
|
.HasColumnType("bigint unsigned");
|
|
|
|
b.Property<long>("Experience")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<int>("Level")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("SkillType")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("TotalItemsCrafted")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("CharacterId");
|
|
|
|
b.ToTable("dungeon_character_crafting_skills");
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Entities.DungeonCharacterItem", b =>
|
|
{
|
|
b.Property<ulong>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint unsigned");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<ulong>("Id"));
|
|
|
|
b.Property<DateTime>("AcquiredAt")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<ulong>("CharacterId")
|
|
.HasColumnType("bigint unsigned");
|
|
|
|
b.Property<ulong?>("CraftedItemId")
|
|
.HasColumnType("bigint unsigned");
|
|
|
|
b.Property<int?>("EquipSlot")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<bool>("IsEquipped")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<int>("ItemDefinitionId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("Quantity")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("SlotIndex")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("CharacterId");
|
|
|
|
b.HasIndex("CraftedItemId");
|
|
|
|
b.HasIndex("ItemDefinitionId");
|
|
|
|
b.ToTable("dungeon_character_items");
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Entities.DungeonCharacterItemCraftedLink", b =>
|
|
{
|
|
b.Property<ulong>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint unsigned");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<ulong>("Id"));
|
|
|
|
b.Property<ulong>("CharacterItemId")
|
|
.HasColumnType("bigint unsigned");
|
|
|
|
b.Property<ulong>("CraftedItemId")
|
|
.HasColumnType("bigint unsigned");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("CharacterItemId");
|
|
|
|
b.HasIndex("CraftedItemId");
|
|
|
|
b.ToTable("dungeon_character_item_crafted_link");
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Entities.DungeonCharacterKnownRecipe", b =>
|
|
{
|
|
b.Property<ulong>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint unsigned");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<ulong>("Id"));
|
|
|
|
b.Property<ulong>("CharacterId")
|
|
.HasColumnType("bigint unsigned");
|
|
|
|
b.Property<DateTime>("DiscoveredAt")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<int>("RecipeId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("TimesCrafted")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("CharacterId");
|
|
|
|
b.HasIndex("RecipeId");
|
|
|
|
b.ToTable("dungeon_character_known_recipes");
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Entities.DungeonCraftedItem", b =>
|
|
{
|
|
b.Property<ulong>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint unsigned");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<ulong>("Id"));
|
|
|
|
b.Property<int>("BaseItemDefinitionId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<DateTime>("CraftedAt")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<ulong?>("CrafterId")
|
|
.HasColumnType("bigint unsigned");
|
|
|
|
b.Property<string>("CrafterName")
|
|
.HasMaxLength(32)
|
|
.HasColumnType("varchar(32)");
|
|
|
|
b.Property<int>("CraftingLevelAtCreation")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("CustomName")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("varchar(64)");
|
|
|
|
b.Property<int>("QualityRating")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int?>("RecipeId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("RollHistoryJson")
|
|
.HasMaxLength(1024)
|
|
.HasColumnType("varchar(1024)");
|
|
|
|
b.Property<int>("RolledBonusArmor")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("RolledBonusDexterity")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("RolledBonusEndurance")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("RolledBonusHealAmount")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("RolledBonusHealth")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("RolledBonusIntelligence")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("RolledBonusMagicResist")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("RolledBonusMana")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("RolledBonusManaRestore")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("RolledBonusMaxDamage")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("RolledBonusMinDamage")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("RolledBonusStrength")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("RolledBonusWisdom")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("BaseItemDefinitionId");
|
|
|
|
b.HasIndex("CrafterId");
|
|
|
|
b.HasIndex("RecipeId");
|
|
|
|
b.ToTable("dungeon_crafted_items");
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Entities.DungeonCraftingRecipe", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("Id"));
|
|
|
|
b.Property<int>("BaseXp")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<float>("BonusOutputChanceAtMinLevel")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<int?>("BonusOutputItemDefinitionId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("BonusOutputMaxLevel")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("BonusOutputMinLevel")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("BonusOutputQuantity")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Description")
|
|
.IsRequired()
|
|
.HasMaxLength(256)
|
|
.HasColumnType("varchar(256)");
|
|
|
|
b.Property<bool>("HasStatRolls")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<bool>("IsBaseRecipe")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<bool>("IsEnabled")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("varchar(64)");
|
|
|
|
b.Property<int>("OutputItemDefinitionId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("OutputQuantity")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("PossibleStatsJson")
|
|
.HasMaxLength(1024)
|
|
.HasColumnType("varchar(1024)");
|
|
|
|
b.Property<int>("RequiredLevel")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("SkillType")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("Tier")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("OutputItemDefinitionId");
|
|
|
|
b.ToTable("dungeon_crafting_recipes");
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Entities.DungeonCraftingRecipeIngredient", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("Id"));
|
|
|
|
b.Property<int>("ItemDefinitionId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("Quantity")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("RecipeId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("SlotOrder")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("ItemDefinitionId");
|
|
|
|
b.HasIndex("RecipeId");
|
|
|
|
b.ToTable("dungeon_crafting_recipe_ingredients");
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Entities.DungeonItemDefinition", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("Id"));
|
|
|
|
b.Property<string>("AmmunitionType")
|
|
.HasMaxLength(32)
|
|
.HasColumnType("varchar(32)");
|
|
|
|
b.Property<int>("Armor")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<float>("ArrowRecoveryChance")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("AttackRange")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<int>("BonusDexterity")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("BonusEndurance")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("BonusHealth")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("BonusIntelligence")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("BonusMana")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("BonusStrength")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("BonusWisdom")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("BuffDuration")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("BuffResistancesJson")
|
|
.IsRequired()
|
|
.HasMaxLength(1024)
|
|
.HasColumnType("varchar(1024)");
|
|
|
|
b.Property<string>("DamageTypeKey")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("varchar(32)");
|
|
|
|
b.Property<string>("Description")
|
|
.IsRequired()
|
|
.HasMaxLength(256)
|
|
.HasColumnType("varchar(256)");
|
|
|
|
b.Property<int?>("EquipSlot")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("HealAmount")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<bool>("IsEnabled")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<bool>("IsLinearProjectile")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<bool>("IsTeleportScroll")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<bool>("IsThrowable")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<int>("ManaRestore")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("MaxArmor")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("MaxBonusDexterity")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("MaxBonusEndurance")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("MaxBonusHealth")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("MaxBonusIntelligence")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("MaxBonusMana")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("MaxBonusStrength")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("MaxBonusWisdom")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("MaxDamage")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("MaxMaxDamage")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("MaxMinDamage")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("MaxStack")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("MinArmor")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("MinBonusDexterity")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("MinBonusEndurance")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("MinBonusHealth")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("MinBonusIntelligence")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("MinBonusMana")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("MinBonusStrength")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("MinBonusWisdom")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("MinDamage")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("MinMaxDamage")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("MinMinDamage")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("varchar(64)");
|
|
|
|
b.Property<int>("ProjectileBackX")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("ProjectileBackY")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("ProjectileFrontX")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("ProjectileFrontY")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("ProjectileRange")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<float>("ProjectileSpeed")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<int>("QuiverCapacity")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("Rarity")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("RequiredDexterity")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("RequiredIntelligence")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("RequiredLevel")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("RequiredStrength")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("RequiredWisdom")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<bool>("RequiresAmmunition")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<string>("ResistancesJson")
|
|
.IsRequired()
|
|
.HasMaxLength(1024)
|
|
.HasColumnType("varchar(1024)");
|
|
|
|
b.Property<int>("SpriteId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("SpritePath")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("varchar(256)");
|
|
|
|
b.Property<bool>("Stackable")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<int>("StaminaRestore")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int?>("TeachesSpellId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("TintColor")
|
|
.HasMaxLength(16)
|
|
.HasColumnType("varchar(16)");
|
|
|
|
b.Property<int>("Type")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("dungeon_item_definitions");
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Entities.DungeonLearnedSpell", b =>
|
|
{
|
|
b.Property<ulong>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint unsigned");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<ulong>("Id"));
|
|
|
|
b.Property<ulong>("CharacterId")
|
|
.HasColumnType("bigint unsigned");
|
|
|
|
b.Property<int?>("DefinitionId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<DateTime>("LearnedAt")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<int>("SpellDefinitionId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("SpellLevel")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("CharacterId");
|
|
|
|
b.HasIndex("DefinitionId");
|
|
|
|
b.ToTable("dungeon_learned_spells");
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.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("DataServer.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("DataServer.Data.Entities.DungeonMobDefinition", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("Id"));
|
|
|
|
b.Property<float>("AggroRange")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("AnimationSpeed")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("ArmorPerTier")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("AttackRange")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("AttackSpeed")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<int>("BaseArmor")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("BaseHealth")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("BaseMagicDamage")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("BaseMagicResist")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("BaseMana")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("BasePhysicalDamage")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("BaseXp")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("Behavior")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<float>("CallForHelpRadius")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<int>("Category")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<float>("DamagePerTier")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<string>("DamageTypeKey")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("varchar(32)");
|
|
|
|
b.Property<string>("Description")
|
|
.IsRequired()
|
|
.HasMaxLength(256)
|
|
.HasColumnType("varchar(256)");
|
|
|
|
b.Property<float>("DropChanceMultiplier")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("FleeThreshold")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("HealthPerTier")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<bool>("IsEnabled")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<float>("LeashRange")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<int>("LootTableId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("MaxTier")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("MinTier")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<float>("MoveSpeed")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("varchar(64)");
|
|
|
|
b.Property<string>("PhasesJson")
|
|
.HasMaxLength(2048)
|
|
.HasColumnType("varchar(2048)");
|
|
|
|
b.Property<float>("PreferredRange")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<string>("ResistancesJson")
|
|
.IsRequired()
|
|
.HasMaxLength(1024)
|
|
.HasColumnType("varchar(1024)");
|
|
|
|
b.Property<float>("Scale")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<string>("SpriteConfigJson")
|
|
.HasMaxLength(8192)
|
|
.HasColumnType("varchar(8192)");
|
|
|
|
b.Property<string>("TintColor")
|
|
.IsRequired()
|
|
.HasMaxLength(16)
|
|
.HasColumnType("varchar(16)");
|
|
|
|
b.Property<int>("Type")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<float>("XpPerTier")
|
|
.HasColumnType("float");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("dungeon_mob_definitions");
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.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("DataServer.Data.Entities.DungeonObjectDefinition", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("Id"));
|
|
|
|
b.Property<float>("AnimationFps")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<int>("AnimationFrameCount")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Biome")
|
|
.HasMaxLength(32)
|
|
.HasColumnType("varchar(32)");
|
|
|
|
b.Property<bool>("BlocksLineOfSight")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<bool>("BlocksMovement")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<bool>("BlocksProjectiles")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<string>("Description")
|
|
.HasMaxLength(512)
|
|
.HasColumnType("varchar(512)");
|
|
|
|
b.Property<int>("Health")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("Height")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("InteractedSpritePath")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("varchar(256)");
|
|
|
|
b.Property<int>("InteractionType")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<bool>("IsAnimated")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<bool>("IsDestructible")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<bool>("IsEnabled")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<bool>("IsInteractable")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<int?>("LootTableId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("varchar(64)");
|
|
|
|
b.Property<int?>("SpriteId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("SpritePath")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("varchar(256)");
|
|
|
|
b.Property<string>("Tags")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("varchar(256)");
|
|
|
|
b.Property<int>("Type")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<DateTime>("UpdatedAt")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<int>("Width")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("ZIndex")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("dungeon_objects");
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Entities.DungeonPalette", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("Id"));
|
|
|
|
b.Property<string>("AllowedBucketIdsJson")
|
|
.HasColumnType("json");
|
|
|
|
b.Property<string>("Biome")
|
|
.HasMaxLength(32)
|
|
.HasColumnType("varchar(32)");
|
|
|
|
b.Property<int>("ContainerDensity")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("ContainerIdsJson")
|
|
.HasColumnType("json");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<int>("DecorationDensity")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("DecorationIdsJson")
|
|
.HasColumnType("json");
|
|
|
|
b.Property<string>("Description")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("varchar(256)");
|
|
|
|
b.Property<string>("DoorTemplateIdsJson")
|
|
.HasColumnType("json");
|
|
|
|
b.Property<bool>("EnforceBiomeBuckets")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<string>("FloorTemplateIdsJson")
|
|
.HasColumnType("json");
|
|
|
|
b.Property<bool>("IsEnabled")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<int>("MaxCorridorWidth")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("MaxRoomHeight")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("MaxRoomWidth")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("MaxRooms")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("MinCorridorWidth")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("MinRoomHeight")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("MinRoomWidth")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("MinRooms")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("varchar(64)");
|
|
|
|
b.Property<string>("RoomTemplateIdsJson")
|
|
.HasColumnType("json");
|
|
|
|
b.Property<string>("Tags")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("varchar(256)");
|
|
|
|
b.Property<int>("TrapDensity")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("TrapIdsJson")
|
|
.HasColumnType("json");
|
|
|
|
b.Property<DateTime>("UpdatedAt")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<string>("WallTemplateIdsJson")
|
|
.HasColumnType("json");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("dungeon_palettes");
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Entities.DungeonPersistence", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("char(36)");
|
|
|
|
b.Property<bool>("BossKilled")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<string>("ChestStateJson")
|
|
.HasColumnType("json");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<ulong>("CreatorCharacterId")
|
|
.HasColumnType("bigint unsigned");
|
|
|
|
b.Property<ulong?>("CreatorId")
|
|
.HasColumnType("bigint unsigned");
|
|
|
|
b.Property<int>("CreatorLevel")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("CreatorName")
|
|
.IsRequired()
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<bool>("IsCleared")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<DateTime>("LastActivity")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<int>("LevelBracketMax")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("LevelBracketMin")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("LootChestStateJson")
|
|
.HasColumnType("json");
|
|
|
|
b.Property<string>("MobStateJson")
|
|
.HasColumnType("json");
|
|
|
|
b.Property<DateTime?>("PersistedAt")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<int>("Seed")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("Tier")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("CreatorId");
|
|
|
|
b.ToTable("dungeon_instances");
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Entities.DungeonQuiverAmmoSlot", b =>
|
|
{
|
|
b.Property<ulong>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint unsigned");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<ulong>("Id"));
|
|
|
|
b.Property<int>("ItemDefinitionId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("MaxQuantity")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("Quantity")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<ulong>("QuiverCharacterItemId")
|
|
.HasColumnType("bigint unsigned");
|
|
|
|
b.Property<ulong?>("QuiverItemId")
|
|
.HasColumnType("bigint unsigned");
|
|
|
|
b.Property<int>("SlotIndex")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("ItemDefinitionId");
|
|
|
|
b.HasIndex("QuiverItemId");
|
|
|
|
b.ToTable("dungeon_quiver_ammo_slots");
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Entities.DungeonRecipeScroll", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("Id"));
|
|
|
|
b.Property<int>("ItemDefinitionId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("RecipeId")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("ItemDefinitionId");
|
|
|
|
b.HasIndex("RecipeId");
|
|
|
|
b.ToTable("dungeon_recipe_scrolls");
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Entities.DungeonSpellDefinition", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("Id"));
|
|
|
|
b.Property<float>("AreaOfEffect")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<int>("BaseDamage")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("BaseHealing")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<float>("Cooldown")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<string>("Description")
|
|
.IsRequired()
|
|
.HasMaxLength(256)
|
|
.HasColumnType("varchar(256)");
|
|
|
|
b.Property<string>("EffectColor")
|
|
.IsRequired()
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<bool>("IsEnabled")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<bool>("IsShield")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<bool>("IsTeleport")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<int>("ManaCost")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("varchar(64)");
|
|
|
|
b.Property<float>("Range")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<int>("RequiredIntelligence")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("RequiredLevel")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("RequiredWisdom")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("ShieldAmount")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("SpriteId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("Type")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("dungeon_spell_definitions");
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Entities.DungeonStashItem", b =>
|
|
{
|
|
b.Property<ulong>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint unsigned");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<ulong>("Id"));
|
|
|
|
b.Property<ulong>("CharacterId")
|
|
.HasColumnType("bigint unsigned");
|
|
|
|
b.Property<int?>("DefinitionId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("ItemDefinitionId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("Quantity")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("SlotIndex")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<DateTime>("StoredAt")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("CharacterId");
|
|
|
|
b.HasIndex("DefinitionId");
|
|
|
|
b.ToTable("dungeon_stash_items");
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Entities.DungeonTemplate", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("Id"));
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<int?>("DefaultTileMapSheetId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Description")
|
|
.HasMaxLength(512)
|
|
.HasColumnType("varchar(512)");
|
|
|
|
b.Property<string>("GenerationParamsJson")
|
|
.HasColumnType("json");
|
|
|
|
b.Property<int>("Height")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<bool>("IsEnabled")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<bool>("IsHandCrafted")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("varchar(64)");
|
|
|
|
b.Property<string>("RoomPlacementsJson")
|
|
.HasColumnType("json");
|
|
|
|
b.Property<string>("Tags")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("varchar(256)");
|
|
|
|
b.Property<int>("Tier")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("TileDataJson")
|
|
.HasColumnType("json");
|
|
|
|
b.Property<DateTime>("UpdatedAt")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<int>("Width")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("DefaultTileMapSheetId");
|
|
|
|
b.ToTable("dungeon_templates");
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Entities.MobAbilityAnimationMapping", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("Id"));
|
|
|
|
b.Property<int>("AbilityAssignmentId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("AnimationKey")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("varchar(64)");
|
|
|
|
b.Property<string>("DirectionSuffix")
|
|
.HasMaxLength(16)
|
|
.HasColumnType("varchar(16)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("AbilityAssignmentId");
|
|
|
|
b.ToTable("mob_ability_animation_mappings");
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Entities.MobAbilityAssignment", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("Id"));
|
|
|
|
b.Property<int>("AbilityDefinitionId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<float?>("CooldownOverride")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<int?>("DamageOverride")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<bool>("IsEnabled")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<float?>("MaxHpPercent")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float?>("MinHpPercent")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<int>("MobDefinitionId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("Phase")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int?>("PriorityOverride")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("AbilityDefinitionId");
|
|
|
|
b.HasIndex("MobDefinitionId");
|
|
|
|
b.ToTable("dungeon_mob_ability_assignments");
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Entities.MobAbilityDefinition", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("Id"));
|
|
|
|
b.Property<int>("AbilityType")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("AffectedStat")
|
|
.HasMaxLength(32)
|
|
.HasColumnType("varchar(32)");
|
|
|
|
b.Property<float>("AnimationDuration")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<string>("AnimationKey")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("varchar(32)");
|
|
|
|
b.Property<float>("AoeRadius")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<int>("BaseDamage")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<float>("CastTime")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("ConeAngle")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("Cooldown")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<float>("DamagePerTier")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<string>("DamageTypeKey")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("varchar(32)");
|
|
|
|
b.Property<string>("Description")
|
|
.IsRequired()
|
|
.HasMaxLength(256)
|
|
.HasColumnType("varchar(256)");
|
|
|
|
b.Property<float>("DisplacementDistance")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<int>("DotDamagePerTick")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<float>("DotTickInterval")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("EffectDuration")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<string>("HazardTintColor")
|
|
.IsRequired()
|
|
.HasMaxLength(16)
|
|
.HasColumnType("varchar(16)");
|
|
|
|
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)");
|
|
|
|
b.Property<string>("Key")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("varchar(64)");
|
|
|
|
b.Property<int>("ManaCost")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int?>("MinTargetsInRange")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("varchar(64)");
|
|
|
|
b.Property<int>("Priority")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<float>("ProjectileSpeed")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<string>("ProjectileSprite")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("varchar(256)");
|
|
|
|
b.Property<float>("Range")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<string>("SoundEffectKey")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("varchar(64)");
|
|
|
|
b.Property<float>("SpeedModifier")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("StatModifier")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<int>("SummonCount")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int?>("SummonMobId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("Targeting")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<DateTime>("UpdatedAt")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<string>("VisualEffectKey")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("varchar(64)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("dungeon_mob_abilities");
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Entities.MobAnimationAssignment", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("Id"));
|
|
|
|
b.Property<int>("AnimationDefinitionId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<bool>("IsEnabled")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<int>("MobDefinitionId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("OverrideKey")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("varchar(64)");
|
|
|
|
b.Property<int>("Priority")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("AnimationDefinitionId");
|
|
|
|
b.HasIndex("MobDefinitionId");
|
|
|
|
b.ToTable("mob_animation_assignments");
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Entities.MobAnimationDefinition", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("Id"));
|
|
|
|
b.Property<bool>("FlipX")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<bool>("FlipY")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<float>("Fps")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<string>("FrameSequence")
|
|
.IsRequired()
|
|
.HasMaxLength(256)
|
|
.HasColumnType("varchar(256)");
|
|
|
|
b.Property<bool>("IsEnabled")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<string>("Key")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("varchar(64)");
|
|
|
|
b.Property<bool>("Loop")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<string>("Name")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("varchar(64)");
|
|
|
|
b.Property<int>("SpriteSheetId")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("SpriteSheetId");
|
|
|
|
b.ToTable("mob_animation_definitions");
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Entities.MobSpriteSheet", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("Id"));
|
|
|
|
b.Property<string>("CdnPath")
|
|
.IsRequired()
|
|
.HasMaxLength(256)
|
|
.HasColumnType("varchar(256)");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<int>("FrameHeight")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("FrameWidth")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<bool>("IsEnabled")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("varchar(64)");
|
|
|
|
b.Property<int>("SheetHeight")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("SheetWidth")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<DateTime>("UpdatedAt")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("mob_sprite_sheets");
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Entities.ObjectTemplate", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("Id"));
|
|
|
|
b.Property<float>("AnimationFps")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<int>("AnimationFrameCount")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<bool>("AnimationLoops")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<string>("AnimationStatesJson")
|
|
.HasColumnType("json");
|
|
|
|
b.Property<string>("Biome")
|
|
.HasMaxLength(32)
|
|
.HasColumnType("varchar(32)");
|
|
|
|
b.Property<string>("BlockedCellsJson")
|
|
.HasColumnType("json");
|
|
|
|
b.Property<bool>("BlocksLineOfSight")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<bool>("BlocksMovement")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<bool>("BlocksProjectiles")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<int>("Damage")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("DamageTypeKey")
|
|
.HasMaxLength(32)
|
|
.HasColumnType("varchar(32)");
|
|
|
|
b.Property<string>("DefaultState")
|
|
.HasMaxLength(32)
|
|
.HasColumnType("varchar(32)");
|
|
|
|
b.Property<string>("Description")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("varchar(256)");
|
|
|
|
b.Property<int?>("DestroyedLootTableId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("DestroyedState")
|
|
.HasMaxLength(32)
|
|
.HasColumnType("varchar(32)");
|
|
|
|
b.Property<int>("FrameIndex")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("GoldAmount")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("Health")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("Height")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<float>("InteractionCooldown")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<string>("InteractionState")
|
|
.HasMaxLength(32)
|
|
.HasColumnType("varchar(32)");
|
|
|
|
b.Property<int>("InteractionType")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<bool>("IsAnimated")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<bool>("IsDestructible")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<bool>("IsEnabled")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<bool>("IsInteractable")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<int?>("LootTableId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("MaxPerRoom")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("MaxTier")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("MinTier")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("varchar(64)");
|
|
|
|
b.Property<int>("OffsetX")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("OffsetY")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("Placement")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int?>("RequiredItemId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<float>("ResetTime")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<string>("SpritePath")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("varchar(256)");
|
|
|
|
b.Property<int?>("SpriteSheetId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Tags")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("varchar(256)");
|
|
|
|
b.Property<float>("TriggerDelay")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<bool>("TriggeredByWalk")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<int>("Type")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<DateTime>("UpdatedAt")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<int>("Weight")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("Width")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("XpReward")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("ZIndex")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("SpriteSheetId");
|
|
|
|
b.ToTable("object_templates");
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Entities.RoomTemplate", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("Id"));
|
|
|
|
b.Property<string>("ConnectionPointsJson")
|
|
.HasColumnType("json");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<string>("Description")
|
|
.HasMaxLength(512)
|
|
.HasColumnType("varchar(512)");
|
|
|
|
b.Property<int>("Height")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<bool>("IsEnabled")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<int>("MaxTier")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("MinTier")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("varchar(64)");
|
|
|
|
b.Property<string>("SpawnPointsJson")
|
|
.HasColumnType("json");
|
|
|
|
b.Property<string>("Tags")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("varchar(256)");
|
|
|
|
b.Property<string>("TileDataJson")
|
|
.HasColumnType("json");
|
|
|
|
b.Property<int>("Type")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<DateTime>("UpdatedAt")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<int>("Weight")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("Width")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("room_templates");
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Entities.SocketName", 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")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("varchar(256)");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("varchar(64)");
|
|
|
|
b.Property<int>("UsageCount")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("socket_names");
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Entities.TileBucket", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("Id"));
|
|
|
|
b.Property<string>("BucketType")
|
|
.HasMaxLength(32)
|
|
.HasColumnType("varchar(32)");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<string>("Description")
|
|
.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("tile_buckets");
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Entities.TileBucketRule", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("Id"));
|
|
|
|
b.Property<int>("SourceBucketId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("TargetBucketId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<float>("Weight")
|
|
.HasColumnType("float");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("SourceBucketId");
|
|
|
|
b.HasIndex("TargetBucketId");
|
|
|
|
b.ToTable("tile_bucket_rules");
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Entities.TileDefinition", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("Id"));
|
|
|
|
b.Property<float>("AnimationFps")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<int>("AnimationFrameCount")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Biome")
|
|
.HasMaxLength(32)
|
|
.HasColumnType("varchar(32)");
|
|
|
|
b.Property<bool>("BlocksLineOfSight")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<bool>("BlocksProjectiles")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<int>("FrameIndex")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<bool>("IsAnimated")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<bool>("IsEnabled")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<bool>("IsInteractable")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<bool>("IsWalkable")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<string>("Name")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("varchar(64)");
|
|
|
|
b.Property<int>("RenderLayer")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("SocketE")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("SocketECustom")
|
|
.HasMaxLength(32)
|
|
.HasColumnType("varchar(32)");
|
|
|
|
b.Property<int>("SocketN")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("SocketNCustom")
|
|
.HasMaxLength(32)
|
|
.HasColumnType("varchar(32)");
|
|
|
|
b.Property<int>("SocketS")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("SocketSCustom")
|
|
.HasMaxLength(32)
|
|
.HasColumnType("varchar(32)");
|
|
|
|
b.Property<int>("SocketW")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("SocketWCustom")
|
|
.HasMaxLength(32)
|
|
.HasColumnType("varchar(32)");
|
|
|
|
b.Property<string>("Tags")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("varchar(256)");
|
|
|
|
b.Property<int>("TileMapSheetId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("Type")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("ZIndex")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("TileMapSheetId");
|
|
|
|
b.ToTable("tile_definitions");
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Entities.TileDefinitionBucket", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("Id"));
|
|
|
|
b.Property<int>("TileBucketId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("TileDefinitionId")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("TileBucketId");
|
|
|
|
b.HasIndex("TileDefinitionId");
|
|
|
|
b.ToTable("tile_definition_buckets");
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Entities.TileMapSheet", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("Id"));
|
|
|
|
b.Property<string>("CdnPath")
|
|
.IsRequired()
|
|
.HasMaxLength(256)
|
|
.HasColumnType("varchar(256)");
|
|
|
|
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<int>("SheetHeight")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("SheetWidth")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Tags")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("varchar(256)");
|
|
|
|
b.Property<int>("TileHeight")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("TileWidth")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<DateTime>("UpdatedAt")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("tilemap_sheets");
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Entities.TileStamp", 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")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("varchar(256)");
|
|
|
|
b.Property<int>("Height")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<bool>("IsEnabled")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("varchar(64)");
|
|
|
|
b.Property<string>("TilesJson")
|
|
.HasColumnType("json");
|
|
|
|
b.Property<DateTime>("UpdatedAt")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<int>("Width")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("tile_stamps");
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Entities.TileTemplate", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("Id"));
|
|
|
|
b.Property<string>("Biome")
|
|
.HasMaxLength(32)
|
|
.HasColumnType("varchar(32)");
|
|
|
|
b.Property<bool>("BlocksLineOfSight")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<bool>("BlocksMovement")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<bool>("BlocksProjectiles")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<int>("Category")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<string>("Description")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("varchar(256)");
|
|
|
|
b.Property<int>("Height")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<bool>("IsEnabled")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<bool>("IsWalkable")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<int>("MaxTier")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("MinTier")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("varchar(64)");
|
|
|
|
b.Property<int?>("PrimaryTileDefinitionId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("SocketConfigJson")
|
|
.HasColumnType("json");
|
|
|
|
b.Property<string>("SocketCustom")
|
|
.HasMaxLength(128)
|
|
.HasColumnType("varchar(128)");
|
|
|
|
b.Property<int>("SocketE")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("SocketN")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("SocketS")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("SocketW")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Tags")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("varchar(256)");
|
|
|
|
b.Property<string>("TilesJson")
|
|
.HasColumnType("json");
|
|
|
|
b.Property<DateTime>("UpdatedAt")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<int>("Weight")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("Width")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("PrimaryTileDefinitionId");
|
|
|
|
b.ToTable("tile_templates");
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Session", b =>
|
|
{
|
|
b.Property<ulong>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint unsigned");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<ulong>("Id"));
|
|
|
|
b.Property<ulong>("AccountId")
|
|
.HasColumnType("bigint unsigned");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("datetime(6)")
|
|
.HasDefaultValueSql("CURRENT_TIMESTAMP(6)");
|
|
|
|
b.Property<string>("CreatedIp")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("varchar(64)");
|
|
|
|
b.Property<DateTime>("ExpiresAt")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<DateTime?>("RevokedAt")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<string>("TokenHash")
|
|
.IsRequired()
|
|
.HasMaxLength(128)
|
|
.HasColumnType("varchar(128)");
|
|
|
|
b.Property<string>("UserAgent")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("varchar(256)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("AccountId");
|
|
|
|
b.HasIndex("TokenHash")
|
|
.IsUnique();
|
|
|
|
b.ToTable("sessions", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Zone", b =>
|
|
{
|
|
b.Property<ulong>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint unsigned");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<ulong>("Id"));
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("datetime(6)")
|
|
.HasDefaultValueSql("CURRENT_TIMESTAMP(6)");
|
|
|
|
b.Property<double>("MaxX")
|
|
.HasColumnType("double");
|
|
|
|
b.Property<double>("MaxY")
|
|
.HasColumnType("double");
|
|
|
|
b.Property<double>("MaxZ")
|
|
.HasColumnType("double");
|
|
|
|
b.Property<double>("MinX")
|
|
.HasColumnType("double");
|
|
|
|
b.Property<double>("MinY")
|
|
.HasColumnType("double");
|
|
|
|
b.Property<double>("MinZ")
|
|
.HasColumnType("double");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("varchar(64)");
|
|
|
|
b.Property<DateTime>("UpdatedAt")
|
|
.ValueGeneratedOnAddOrUpdate()
|
|
.HasColumnType("datetime(6)")
|
|
.HasDefaultValueSql("CURRENT_TIMESTAMP(6)");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlComputedColumn(b.Property<DateTime>("UpdatedAt"));
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("Name")
|
|
.IsUnique();
|
|
|
|
b.ToTable("zones", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Entities.DeathChest", b =>
|
|
{
|
|
b.HasOne("DataServer.Data.Entities.DungeonCharacter", "OwnerCharacter")
|
|
.WithMany()
|
|
.HasForeignKey("OwnerCharacterId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("DataServer.Data.Entities.DungeonCharacter", "VictimCharacter")
|
|
.WithMany()
|
|
.HasForeignKey("VictimCharacterId");
|
|
|
|
b.Navigation("OwnerCharacter");
|
|
|
|
b.Navigation("VictimCharacter");
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Entities.DeathChestItem", b =>
|
|
{
|
|
b.HasOne("DataServer.Data.Entities.DeathChest", "DeathChest")
|
|
.WithMany("Items")
|
|
.HasForeignKey("DeathChestId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("DataServer.Data.Entities.DungeonItemDefinition", "ItemDefinition")
|
|
.WithMany()
|
|
.HasForeignKey("ItemDefinitionId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("DeathChest");
|
|
|
|
b.Navigation("ItemDefinition");
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Entities.DungeonBeltItem", b =>
|
|
{
|
|
b.HasOne("DataServer.Data.Entities.DungeonCharacter", "Character")
|
|
.WithMany()
|
|
.HasForeignKey("CharacterId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Character");
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Entities.DungeonCharacter", b =>
|
|
{
|
|
b.HasOne("DataServer.Data.Account", "Account")
|
|
.WithMany("Characters")
|
|
.HasForeignKey("AccountId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Account");
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Entities.DungeonCharacterCraftingSkill", b =>
|
|
{
|
|
b.HasOne("DataServer.Data.Entities.DungeonCharacter", "Character")
|
|
.WithMany("CraftingSkills")
|
|
.HasForeignKey("CharacterId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Character");
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Entities.DungeonCharacterItem", b =>
|
|
{
|
|
b.HasOne("DataServer.Data.Entities.DungeonCharacter", "Character")
|
|
.WithMany("Inventory")
|
|
.HasForeignKey("CharacterId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("DataServer.Data.Entities.DungeonCraftedItem", "CraftedItem")
|
|
.WithMany()
|
|
.HasForeignKey("CraftedItemId");
|
|
|
|
b.HasOne("DataServer.Data.Entities.DungeonItemDefinition", "ItemDefinition")
|
|
.WithMany()
|
|
.HasForeignKey("ItemDefinitionId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Character");
|
|
|
|
b.Navigation("CraftedItem");
|
|
|
|
b.Navigation("ItemDefinition");
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Entities.DungeonCharacterItemCraftedLink", b =>
|
|
{
|
|
b.HasOne("DataServer.Data.Entities.DungeonCharacterItem", "CharacterItem")
|
|
.WithMany()
|
|
.HasForeignKey("CharacterItemId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("DataServer.Data.Entities.DungeonCraftedItem", "CraftedItem")
|
|
.WithMany()
|
|
.HasForeignKey("CraftedItemId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("CharacterItem");
|
|
|
|
b.Navigation("CraftedItem");
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Entities.DungeonCharacterKnownRecipe", b =>
|
|
{
|
|
b.HasOne("DataServer.Data.Entities.DungeonCharacter", "Character")
|
|
.WithMany("KnownRecipes")
|
|
.HasForeignKey("CharacterId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("DataServer.Data.Entities.DungeonCraftingRecipe", "Recipe")
|
|
.WithMany()
|
|
.HasForeignKey("RecipeId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Character");
|
|
|
|
b.Navigation("Recipe");
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Entities.DungeonCraftedItem", b =>
|
|
{
|
|
b.HasOne("DataServer.Data.Entities.DungeonItemDefinition", "BaseItemDefinition")
|
|
.WithMany()
|
|
.HasForeignKey("BaseItemDefinitionId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("DataServer.Data.Entities.DungeonCharacter", "Crafter")
|
|
.WithMany()
|
|
.HasForeignKey("CrafterId");
|
|
|
|
b.HasOne("DataServer.Data.Entities.DungeonCraftingRecipe", "Recipe")
|
|
.WithMany()
|
|
.HasForeignKey("RecipeId");
|
|
|
|
b.Navigation("BaseItemDefinition");
|
|
|
|
b.Navigation("Crafter");
|
|
|
|
b.Navigation("Recipe");
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Entities.DungeonCraftingRecipe", b =>
|
|
{
|
|
b.HasOne("DataServer.Data.Entities.DungeonItemDefinition", "OutputItem")
|
|
.WithMany()
|
|
.HasForeignKey("OutputItemDefinitionId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("OutputItem");
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Entities.DungeonCraftingRecipeIngredient", b =>
|
|
{
|
|
b.HasOne("DataServer.Data.Entities.DungeonItemDefinition", "ItemDefinition")
|
|
.WithMany()
|
|
.HasForeignKey("ItemDefinitionId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("DataServer.Data.Entities.DungeonCraftingRecipe", "Recipe")
|
|
.WithMany("Ingredients")
|
|
.HasForeignKey("RecipeId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("ItemDefinition");
|
|
|
|
b.Navigation("Recipe");
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Entities.DungeonLearnedSpell", b =>
|
|
{
|
|
b.HasOne("DataServer.Data.Entities.DungeonCharacter", "Character")
|
|
.WithMany("LearnedSpells")
|
|
.HasForeignKey("CharacterId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("DataServer.Data.Entities.DungeonSpellDefinition", "Definition")
|
|
.WithMany()
|
|
.HasForeignKey("DefinitionId");
|
|
|
|
b.Navigation("Character");
|
|
|
|
b.Navigation("Definition");
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Entities.DungeonLootTableEntry", b =>
|
|
{
|
|
b.HasOne("DataServer.Data.Entities.DungeonItemDefinition", "ItemDefinition")
|
|
.WithMany()
|
|
.HasForeignKey("ItemDefinitionId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("DataServer.Data.Entities.DungeonLootTable", "LootTable")
|
|
.WithMany("Entries")
|
|
.HasForeignKey("LootTableId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("ItemDefinition");
|
|
|
|
b.Navigation("LootTable");
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Entities.DungeonMobLootTable", b =>
|
|
{
|
|
b.HasOne("DataServer.Data.Entities.DungeonLootTable", "LootTable")
|
|
.WithMany()
|
|
.HasForeignKey("LootTableId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("DataServer.Data.Entities.DungeonMobDefinition", "MobDefinition")
|
|
.WithMany()
|
|
.HasForeignKey("MobDefinitionId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("LootTable");
|
|
|
|
b.Navigation("MobDefinition");
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Entities.DungeonPersistence", b =>
|
|
{
|
|
b.HasOne("DataServer.Data.Entities.DungeonCharacter", "Creator")
|
|
.WithMany()
|
|
.HasForeignKey("CreatorId");
|
|
|
|
b.Navigation("Creator");
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Entities.DungeonQuiverAmmoSlot", b =>
|
|
{
|
|
b.HasOne("DataServer.Data.Entities.DungeonItemDefinition", "ItemDefinition")
|
|
.WithMany()
|
|
.HasForeignKey("ItemDefinitionId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("DataServer.Data.Entities.DungeonCharacterItem", "QuiverItem")
|
|
.WithMany()
|
|
.HasForeignKey("QuiverItemId");
|
|
|
|
b.Navigation("ItemDefinition");
|
|
|
|
b.Navigation("QuiverItem");
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Entities.DungeonRecipeScroll", b =>
|
|
{
|
|
b.HasOne("DataServer.Data.Entities.DungeonItemDefinition", "ItemDefinition")
|
|
.WithMany()
|
|
.HasForeignKey("ItemDefinitionId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("DataServer.Data.Entities.DungeonCraftingRecipe", "Recipe")
|
|
.WithMany()
|
|
.HasForeignKey("RecipeId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("ItemDefinition");
|
|
|
|
b.Navigation("Recipe");
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Entities.DungeonStashItem", b =>
|
|
{
|
|
b.HasOne("DataServer.Data.Entities.DungeonCharacter", "Character")
|
|
.WithMany("Stash")
|
|
.HasForeignKey("CharacterId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("DataServer.Data.Entities.DungeonItemDefinition", "Definition")
|
|
.WithMany()
|
|
.HasForeignKey("DefinitionId");
|
|
|
|
b.Navigation("Character");
|
|
|
|
b.Navigation("Definition");
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Entities.DungeonTemplate", b =>
|
|
{
|
|
b.HasOne("DataServer.Data.Entities.TileMapSheet", "DefaultTileMapSheet")
|
|
.WithMany()
|
|
.HasForeignKey("DefaultTileMapSheetId");
|
|
|
|
b.Navigation("DefaultTileMapSheet");
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Entities.MobAbilityAnimationMapping", b =>
|
|
{
|
|
b.HasOne("DataServer.Data.Entities.MobAbilityAssignment", "AbilityAssignment")
|
|
.WithMany()
|
|
.HasForeignKey("AbilityAssignmentId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("AbilityAssignment");
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Entities.MobAbilityAssignment", b =>
|
|
{
|
|
b.HasOne("DataServer.Data.Entities.MobAbilityDefinition", "AbilityDefinition")
|
|
.WithMany()
|
|
.HasForeignKey("AbilityDefinitionId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("DataServer.Data.Entities.DungeonMobDefinition", "MobDefinition")
|
|
.WithMany("AbilityAssignments")
|
|
.HasForeignKey("MobDefinitionId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("AbilityDefinition");
|
|
|
|
b.Navigation("MobDefinition");
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Entities.MobAnimationAssignment", b =>
|
|
{
|
|
b.HasOne("DataServer.Data.Entities.MobAnimationDefinition", "AnimationDefinition")
|
|
.WithMany()
|
|
.HasForeignKey("AnimationDefinitionId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("DataServer.Data.Entities.DungeonMobDefinition", "MobDefinition")
|
|
.WithMany()
|
|
.HasForeignKey("MobDefinitionId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("AnimationDefinition");
|
|
|
|
b.Navigation("MobDefinition");
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Entities.MobAnimationDefinition", b =>
|
|
{
|
|
b.HasOne("DataServer.Data.Entities.MobSpriteSheet", "SpriteSheet")
|
|
.WithMany("Animations")
|
|
.HasForeignKey("SpriteSheetId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("SpriteSheet");
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Entities.ObjectTemplate", b =>
|
|
{
|
|
b.HasOne("DataServer.Data.Entities.TileMapSheet", "SpriteSheet")
|
|
.WithMany()
|
|
.HasForeignKey("SpriteSheetId");
|
|
|
|
b.Navigation("SpriteSheet");
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Entities.TileBucketRule", b =>
|
|
{
|
|
b.HasOne("DataServer.Data.Entities.TileBucket", "SourceBucket")
|
|
.WithMany()
|
|
.HasForeignKey("SourceBucketId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("DataServer.Data.Entities.TileBucket", "TargetBucket")
|
|
.WithMany()
|
|
.HasForeignKey("TargetBucketId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("SourceBucket");
|
|
|
|
b.Navigation("TargetBucket");
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Entities.TileDefinition", b =>
|
|
{
|
|
b.HasOne("DataServer.Data.Entities.TileMapSheet", "TileMapSheet")
|
|
.WithMany("Tiles")
|
|
.HasForeignKey("TileMapSheetId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("TileMapSheet");
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Entities.TileDefinitionBucket", b =>
|
|
{
|
|
b.HasOne("DataServer.Data.Entities.TileBucket", "TileBucket")
|
|
.WithMany()
|
|
.HasForeignKey("TileBucketId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("DataServer.Data.Entities.TileDefinition", "TileDefinition")
|
|
.WithMany()
|
|
.HasForeignKey("TileDefinitionId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("TileBucket");
|
|
|
|
b.Navigation("TileDefinition");
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Entities.TileTemplate", b =>
|
|
{
|
|
b.HasOne("DataServer.Data.Entities.TileDefinition", "PrimaryTileDefinition")
|
|
.WithMany()
|
|
.HasForeignKey("PrimaryTileDefinitionId");
|
|
|
|
b.Navigation("PrimaryTileDefinition");
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Session", b =>
|
|
{
|
|
b.HasOne("DataServer.Data.Account", "Account")
|
|
.WithMany("Sessions")
|
|
.HasForeignKey("AccountId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Account");
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Account", b =>
|
|
{
|
|
b.Navigation("Characters");
|
|
|
|
b.Navigation("Sessions");
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Entities.DeathChest", b =>
|
|
{
|
|
b.Navigation("Items");
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Entities.DungeonCharacter", b =>
|
|
{
|
|
b.Navigation("CraftingSkills");
|
|
|
|
b.Navigation("Inventory");
|
|
|
|
b.Navigation("KnownRecipes");
|
|
|
|
b.Navigation("LearnedSpells");
|
|
|
|
b.Navigation("Stash");
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Entities.DungeonCraftingRecipe", b =>
|
|
{
|
|
b.Navigation("Ingredients");
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Entities.DungeonLootTable", b =>
|
|
{
|
|
b.Navigation("Entries");
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Entities.DungeonMobDefinition", b =>
|
|
{
|
|
b.Navigation("AbilityAssignments");
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Entities.MobSpriteSheet", b =>
|
|
{
|
|
b.Navigation("Animations");
|
|
});
|
|
|
|
modelBuilder.Entity("DataServer.Data.Entities.TileMapSheet", b =>
|
|
{
|
|
b.Navigation("Tiles");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|