1867 lines
65 KiB
C#
1867 lines
65 KiB
C#
// <auto-generated />
|
|
using System;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Metadata;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
using Server.Data;
|
|
|
|
#nullable disable
|
|
|
|
namespace SystemRevivalServer.Migrations
|
|
{
|
|
[DbContext(typeof(GameDbContext))]
|
|
partial class GameDbContextModelSnapshot : ModelSnapshot
|
|
{
|
|
protected override void BuildModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder
|
|
.HasAnnotation("ProductVersion", "9.0.10")
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 64);
|
|
|
|
MySqlModelBuilderExtensions.AutoIncrementColumns(modelBuilder);
|
|
|
|
modelBuilder.Entity("Server.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("Server.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("Server.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("Server.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("Server.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("Server.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?>("EquippedAccessory")
|
|
.HasColumnType("bigint unsigned");
|
|
|
|
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?>("EquippedOffhand")
|
|
.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<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("Server.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<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("ItemDefinitionId");
|
|
|
|
b.ToTable("dungeon_character_items");
|
|
});
|
|
|
|
modelBuilder.Entity("Server.Data.Entities.DungeonItemDefinition", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("Id"));
|
|
|
|
b.Property<int>("Armor")
|
|
.HasColumnType("int");
|
|
|
|
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>("DamageType")
|
|
.HasColumnType("int");
|
|
|
|
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>("IsTeleportScroll")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<int>("MagicResist")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("ManaRestore")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("MaxDamage")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("MaxStack")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("MinDamage")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("varchar(64)");
|
|
|
|
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<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("Server.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("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")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("Id"));
|
|
|
|
b.Property<string>("AbilitiesJson")
|
|
.IsRequired()
|
|
.HasMaxLength(1024)
|
|
.HasColumnType("varchar(1024)");
|
|
|
|
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>("Category")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<float>("DamagePerTier")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<string>("Description")
|
|
.IsRequired()
|
|
.HasMaxLength(256)
|
|
.HasColumnType("varchar(256)");
|
|
|
|
b.Property<float>("DropChanceMultiplier")
|
|
.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>("ResistancesJson")
|
|
.IsRequired()
|
|
.HasMaxLength(1024)
|
|
.HasColumnType("varchar(1024)");
|
|
|
|
b.Property<float>("Scale")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<string>("SpriteConfigJson")
|
|
.HasMaxLength(4096)
|
|
.HasColumnType("varchar(4096)");
|
|
|
|
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("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.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("Server.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("Server.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("Server.Data.EquipmentSlot", 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>("CreatedAt")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("datetime(6)")
|
|
.HasDefaultValueSql("CURRENT_TIMESTAMP(6)");
|
|
|
|
b.Property<ulong>("ItemTemplateId")
|
|
.HasColumnType("bigint unsigned");
|
|
|
|
b.Property<byte>("SlotCode")
|
|
.HasColumnType("tinyint unsigned");
|
|
|
|
b.Property<DateTime>("UpdatedAt")
|
|
.ValueGeneratedOnAddOrUpdate()
|
|
.HasColumnType("datetime(6)")
|
|
.HasDefaultValueSql("CURRENT_TIMESTAMP(6)");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlComputedColumn(b.Property<DateTime>("UpdatedAt"));
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("ItemTemplateId");
|
|
|
|
b.HasIndex("CharacterId", "SlotCode")
|
|
.IsUnique();
|
|
|
|
b.ToTable("equipment", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Server.Data.GameItem", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("AmmoType")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("Category")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("CraftCost")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("datetime(6)")
|
|
.HasDefaultValueSql("CURRENT_TIMESTAMP(6)");
|
|
|
|
b.Property<int>("Damage")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<float>("DamageReduction")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("DashCooldown")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("DashDistance")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<string>("Description")
|
|
.IsRequired()
|
|
.HasMaxLength(256)
|
|
.HasColumnType("varchar(256)");
|
|
|
|
b.Property<float>("ExplosionRadius")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("FireRate")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("HarvestMultiplier")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<int>("HealAmount")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("HealthBonus")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<bool>("IsEnabled")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("tinyint(1)")
|
|
.HasDefaultValue(true);
|
|
|
|
b.Property<int>("LootValue")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("varchar(64)");
|
|
|
|
b.Property<int>("PelletCount")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<float>("ProjectileSpeed")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("Range")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("ScanCooldown")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("ScanRadius")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("ShieldBoostDuration")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("ShieldDuration")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<int>("ShieldHealth")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<float>("SpeedBoostDuration")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("SpeedMultiplier")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("SpeedPenalty")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("Spread")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<bool>("Stackable")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<DateTime>("UpdatedAt")
|
|
.ValueGeneratedOnAddOrUpdate()
|
|
.HasColumnType("datetime(6)")
|
|
.HasDefaultValueSql("CURRENT_TIMESTAMP(6)");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlComputedColumn(b.Property<DateTime>("UpdatedAt"));
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("Category");
|
|
|
|
b.HasIndex("IsEnabled");
|
|
|
|
b.ToTable("game_items", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Server.Data.GameRecipe", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("datetime(6)")
|
|
.HasDefaultValueSql("CURRENT_TIMESTAMP(6)");
|
|
|
|
b.Property<int>("EnergyCost")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<bool>("IsEnabled")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("tinyint(1)")
|
|
.HasDefaultValue(true);
|
|
|
|
b.Property<int>("RareCost")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("ResultItemId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("ScrapCost")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<DateTime>("UpdatedAt")
|
|
.ValueGeneratedOnAddOrUpdate()
|
|
.HasColumnType("datetime(6)")
|
|
.HasDefaultValueSql("CURRENT_TIMESTAMP(6)");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlComputedColumn(b.Property<DateTime>("UpdatedAt"));
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("IsEnabled");
|
|
|
|
b.HasIndex("ResultItemId");
|
|
|
|
b.ToTable("game_recipes", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Server.Data.InventoryItem", 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>("CreatedAt")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("datetime(6)")
|
|
.HasDefaultValueSql("CURRENT_TIMESTAMP(6)");
|
|
|
|
b.Property<ulong>("ItemTemplateId")
|
|
.HasColumnType("bigint unsigned");
|
|
|
|
b.Property<uint>("Quantity")
|
|
.HasColumnType("int unsigned");
|
|
|
|
b.Property<uint>("SlotIndex")
|
|
.HasColumnType("int unsigned");
|
|
|
|
b.Property<DateTime>("UpdatedAt")
|
|
.ValueGeneratedOnAddOrUpdate()
|
|
.HasColumnType("datetime(6)")
|
|
.HasDefaultValueSql("CURRENT_TIMESTAMP(6)");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlComputedColumn(b.Property<DateTime>("UpdatedAt"));
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("CharacterId");
|
|
|
|
b.HasIndex("ItemTemplateId");
|
|
|
|
b.HasIndex("CharacterId", "SlotIndex")
|
|
.IsUnique();
|
|
|
|
b.ToTable("inventories", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Server.Data.ItemTemplate", 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<byte>("ItemType")
|
|
.HasColumnType("tinyint unsigned");
|
|
|
|
b.Property<uint>("MaxStack")
|
|
.HasColumnType("int unsigned");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("varchar(64)");
|
|
|
|
b.Property<byte>("Rarity")
|
|
.HasColumnType("tinyint unsigned");
|
|
|
|
b.Property<string>("StatsJson")
|
|
.HasColumnType("json");
|
|
|
|
b.Property<DateTime>("UpdatedAt")
|
|
.ValueGeneratedOnAddOrUpdate()
|
|
.HasColumnType("datetime(6)")
|
|
.HasDefaultValueSql("CURRENT_TIMESTAMP(6)");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlComputedColumn(b.Property<DateTime>("UpdatedAt"));
|
|
|
|
b.Property<uint>("Weight")
|
|
.HasColumnType("int unsigned");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("Name")
|
|
.IsUnique();
|
|
|
|
b.ToTable("item_templates", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Server.Data.MatchHistory", 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>("DamageDealt")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("DamageTaken")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("Deaths")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("EloAfter")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("EloChange")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("EnergyCollected")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("ItemsCrafted")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("Kills")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("MatchDurationSeconds")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("MatchId")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("varchar(32)");
|
|
|
|
b.Property<int>("Placement")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<DateTime>("PlayedAt")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("datetime(6)")
|
|
.HasDefaultValueSql("CURRENT_TIMESTAMP(6)");
|
|
|
|
b.Property<int>("RareCollected")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("Result")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("ScrapCollected")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("SurvivalTimeSeconds")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("TotalPlayers")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("AccountId");
|
|
|
|
b.HasIndex("MatchId");
|
|
|
|
b.HasIndex("PlayedAt");
|
|
|
|
b.ToTable("match_history", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Server.Data.Old_Character", b =>
|
|
{
|
|
b.Property<ulong>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint unsigned");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<ulong>("Id"));
|
|
|
|
b.Property<ulong>("AccountId")
|
|
.HasColumnType("bigint unsigned");
|
|
|
|
b.Property<string>("AppearanceJson")
|
|
.HasColumnType("json");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("datetime(6)")
|
|
.HasDefaultValueSql("CURRENT_TIMESTAMP(6)");
|
|
|
|
b.Property<float>("FacingDeg")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<uint>("HpCurrent")
|
|
.HasColumnType("int unsigned");
|
|
|
|
b.Property<uint>("HpMax")
|
|
.HasColumnType("int unsigned");
|
|
|
|
b.Property<uint>("Level")
|
|
.HasColumnType("int unsigned");
|
|
|
|
b.Property<uint>("MpCurrent")
|
|
.HasColumnType("int unsigned");
|
|
|
|
b.Property<uint>("MpMax")
|
|
.HasColumnType("int unsigned");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("varchar(32)");
|
|
|
|
b.Property<double>("PosX")
|
|
.HasColumnType("double");
|
|
|
|
b.Property<double>("PosY")
|
|
.HasColumnType("double");
|
|
|
|
b.Property<double>("PosZ")
|
|
.HasColumnType("double");
|
|
|
|
b.Property<uint>("StaminaCurrent")
|
|
.HasColumnType("int unsigned");
|
|
|
|
b.Property<uint>("StaminaMax")
|
|
.HasColumnType("int unsigned");
|
|
|
|
b.Property<uint>("StatDexterity")
|
|
.HasColumnType("int unsigned");
|
|
|
|
b.Property<uint>("StatEndurance")
|
|
.HasColumnType("int unsigned");
|
|
|
|
b.Property<uint>("StatIntelligence")
|
|
.HasColumnType("int unsigned");
|
|
|
|
b.Property<uint>("StatStrength")
|
|
.HasColumnType("int unsigned");
|
|
|
|
b.Property<uint>("StatWisdom")
|
|
.HasColumnType("int unsigned");
|
|
|
|
b.Property<DateTime>("UpdatedAt")
|
|
.ValueGeneratedOnAddOrUpdate()
|
|
.HasColumnType("datetime(6)")
|
|
.HasDefaultValueSql("CURRENT_TIMESTAMP(6)");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlComputedColumn(b.Property<DateTime>("UpdatedAt"));
|
|
|
|
b.Property<ulong>("Xp")
|
|
.HasColumnType("bigint unsigned");
|
|
|
|
b.Property<ulong>("ZoneId")
|
|
.HasColumnType("bigint unsigned");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("AccountId")
|
|
.IsUnique();
|
|
|
|
b.HasIndex("ZoneId");
|
|
|
|
b.ToTable("characters", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Server.Data.PlayerStats", 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<int>("Deaths")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("Elo")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int")
|
|
.HasDefaultValue(1000);
|
|
|
|
b.Property<int>("Extractions")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("ItemsCrafted")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("Kills")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("LongestSurvivalSeconds")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("Losses")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("MatchesPlayed")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<long>("TotalDamageDealt")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<long>("TotalDamageTaken")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<long>("TotalEnergyCollected")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<long>("TotalPlayTimeSeconds")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<long>("TotalRareCollected")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<long>("TotalScrapCollected")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<DateTime>("UpdatedAt")
|
|
.ValueGeneratedOnAddOrUpdate()
|
|
.HasColumnType("datetime(6)")
|
|
.HasDefaultValueSql("CURRENT_TIMESTAMP(6)");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlComputedColumn(b.Property<DateTime>("UpdatedAt"));
|
|
|
|
b.Property<int>("Wins")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("AccountId")
|
|
.IsUnique();
|
|
|
|
b.ToTable("player_stats", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Server.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("Server.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("Server.Data.Entities.DeathChest", b =>
|
|
{
|
|
b.HasOne("Server.Data.Entities.DungeonCharacter", "OwnerCharacter")
|
|
.WithMany()
|
|
.HasForeignKey("OwnerCharacterId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("Server.Data.Entities.DungeonCharacter", "VictimCharacter")
|
|
.WithMany()
|
|
.HasForeignKey("VictimCharacterId");
|
|
|
|
b.Navigation("OwnerCharacter");
|
|
|
|
b.Navigation("VictimCharacter");
|
|
});
|
|
|
|
modelBuilder.Entity("Server.Data.Entities.DeathChestItem", b =>
|
|
{
|
|
b.HasOne("Server.Data.Entities.DeathChest", "DeathChest")
|
|
.WithMany("Items")
|
|
.HasForeignKey("DeathChestId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("Server.Data.Entities.DungeonItemDefinition", "ItemDefinition")
|
|
.WithMany()
|
|
.HasForeignKey("ItemDefinitionId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("DeathChest");
|
|
|
|
b.Navigation("ItemDefinition");
|
|
});
|
|
|
|
modelBuilder.Entity("Server.Data.Entities.DungeonBeltItem", b =>
|
|
{
|
|
b.HasOne("Server.Data.Entities.DungeonCharacter", "Character")
|
|
.WithMany()
|
|
.HasForeignKey("CharacterId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Character");
|
|
});
|
|
|
|
modelBuilder.Entity("Server.Data.Entities.DungeonCharacter", b =>
|
|
{
|
|
b.HasOne("Server.Data.Account", "Account")
|
|
.WithMany()
|
|
.HasForeignKey("AccountId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Account");
|
|
});
|
|
|
|
modelBuilder.Entity("Server.Data.Entities.DungeonCharacterItem", b =>
|
|
{
|
|
b.HasOne("Server.Data.Entities.DungeonCharacter", "Character")
|
|
.WithMany("Inventory")
|
|
.HasForeignKey("CharacterId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("Server.Data.Entities.DungeonItemDefinition", "ItemDefinition")
|
|
.WithMany()
|
|
.HasForeignKey("ItemDefinitionId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Character");
|
|
|
|
b.Navigation("ItemDefinition");
|
|
});
|
|
|
|
modelBuilder.Entity("Server.Data.Entities.DungeonLearnedSpell", b =>
|
|
{
|
|
b.HasOne("Server.Data.Entities.DungeonCharacter", "Character")
|
|
.WithMany("LearnedSpells")
|
|
.HasForeignKey("CharacterId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("Server.Data.Entities.DungeonSpellDefinition", "Definition")
|
|
.WithMany()
|
|
.HasForeignKey("DefinitionId");
|
|
|
|
b.Navigation("Character");
|
|
|
|
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.DungeonPersistence", b =>
|
|
{
|
|
b.HasOne("Server.Data.Entities.DungeonCharacter", "Creator")
|
|
.WithMany()
|
|
.HasForeignKey("CreatorId");
|
|
|
|
b.Navigation("Creator");
|
|
});
|
|
|
|
modelBuilder.Entity("Server.Data.Entities.DungeonStashItem", b =>
|
|
{
|
|
b.HasOne("Server.Data.Entities.DungeonCharacter", "Character")
|
|
.WithMany("Stash")
|
|
.HasForeignKey("CharacterId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("Server.Data.Entities.DungeonItemDefinition", "Definition")
|
|
.WithMany()
|
|
.HasForeignKey("DefinitionId");
|
|
|
|
b.Navigation("Character");
|
|
|
|
b.Navigation("Definition");
|
|
});
|
|
|
|
modelBuilder.Entity("Server.Data.EquipmentSlot", b =>
|
|
{
|
|
b.HasOne("Server.Data.Old_Character", "Old_Character")
|
|
.WithMany()
|
|
.HasForeignKey("CharacterId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("Server.Data.ItemTemplate", "ItemTemplate")
|
|
.WithMany()
|
|
.HasForeignKey("ItemTemplateId")
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
.IsRequired();
|
|
|
|
b.Navigation("ItemTemplate");
|
|
|
|
b.Navigation("Old_Character");
|
|
});
|
|
|
|
modelBuilder.Entity("Server.Data.GameRecipe", b =>
|
|
{
|
|
b.HasOne("Server.Data.GameItem", "ResultItem")
|
|
.WithMany()
|
|
.HasForeignKey("ResultItemId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("ResultItem");
|
|
});
|
|
|
|
modelBuilder.Entity("Server.Data.InventoryItem", b =>
|
|
{
|
|
b.HasOne("Server.Data.Old_Character", "Old_Character")
|
|
.WithMany()
|
|
.HasForeignKey("CharacterId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("Server.Data.ItemTemplate", "ItemTemplate")
|
|
.WithMany()
|
|
.HasForeignKey("ItemTemplateId")
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
.IsRequired();
|
|
|
|
b.Navigation("ItemTemplate");
|
|
|
|
b.Navigation("Old_Character");
|
|
});
|
|
|
|
modelBuilder.Entity("Server.Data.MatchHistory", b =>
|
|
{
|
|
b.HasOne("Server.Data.Account", "Account")
|
|
.WithMany()
|
|
.HasForeignKey("AccountId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Account");
|
|
});
|
|
|
|
modelBuilder.Entity("Server.Data.Old_Character", b =>
|
|
{
|
|
b.HasOne("Server.Data.Account", "Account")
|
|
.WithMany("Characters")
|
|
.HasForeignKey("AccountId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("Server.Data.Zone", "Zone")
|
|
.WithMany()
|
|
.HasForeignKey("ZoneId")
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Account");
|
|
|
|
b.Navigation("Zone");
|
|
});
|
|
|
|
modelBuilder.Entity("Server.Data.PlayerStats", b =>
|
|
{
|
|
b.HasOne("Server.Data.Account", "Account")
|
|
.WithOne()
|
|
.HasForeignKey("Server.Data.PlayerStats", "AccountId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Account");
|
|
});
|
|
|
|
modelBuilder.Entity("Server.Data.Session", b =>
|
|
{
|
|
b.HasOne("Server.Data.Account", "Account")
|
|
.WithMany("Sessions")
|
|
.HasForeignKey("AccountId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Account");
|
|
});
|
|
|
|
modelBuilder.Entity("Server.Data.Account", b =>
|
|
{
|
|
b.Navigation("Characters");
|
|
|
|
b.Navigation("Sessions");
|
|
});
|
|
|
|
modelBuilder.Entity("Server.Data.Entities.DeathChest", b =>
|
|
{
|
|
b.Navigation("Items");
|
|
});
|
|
|
|
modelBuilder.Entity("Server.Data.Entities.DungeonCharacter", b =>
|
|
{
|
|
b.Navigation("Inventory");
|
|
|
|
b.Navigation("LearnedSpells");
|
|
|
|
b.Navigation("Stash");
|
|
});
|
|
|
|
modelBuilder.Entity("Server.Data.Entities.DungeonLootTable", b =>
|
|
{
|
|
b.Navigation("Entries");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|