big changes

This commit is contained in:
dingo
2025-12-06 18:06:03 -05:00
parent 8d423ea171
commit 311b55c7cc
41 changed files with 4582 additions and 1479 deletions
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,354 @@
using System;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace SystemRevivalServer.Migrations
{
/// <inheritdoc />
public partial class AddDungeonCrawlerEntities : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "dungeon_characters",
columns: table => new
{
Id = table.Column<ulong>(type: "bigint unsigned", nullable: false)
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
AccountId = table.Column<ulong>(type: "bigint unsigned", nullable: false),
Name = table.Column<string>(type: "varchar(32)", maxLength: 32, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
CreatedAt = table.Column<DateTime>(type: "datetime(6)", nullable: false),
LastPlayedAt = table.Column<DateTime>(type: "datetime(6)", nullable: false),
Level = table.Column<int>(type: "int", nullable: false),
Experience = table.Column<long>(type: "bigint", nullable: false),
UnspentStatPoints = table.Column<int>(type: "int", nullable: false),
Strength = table.Column<int>(type: "int", nullable: false),
Intelligence = table.Column<int>(type: "int", nullable: false),
Wisdom = table.Column<int>(type: "int", nullable: false),
Endurance = table.Column<int>(type: "int", nullable: false),
Dexterity = table.Column<int>(type: "int", nullable: false),
CurrentHealth = table.Column<int>(type: "int", nullable: false),
CurrentMana = table.Column<int>(type: "int", nullable: false),
EquippedWeapon = table.Column<ulong>(type: "bigint unsigned", nullable: true),
EquippedOffhand = table.Column<ulong>(type: "bigint unsigned", nullable: true),
EquippedHead = table.Column<ulong>(type: "bigint unsigned", nullable: true),
EquippedChest = table.Column<ulong>(type: "bigint unsigned", nullable: true),
EquippedLegs = table.Column<ulong>(type: "bigint unsigned", nullable: true),
EquippedBoots = table.Column<ulong>(type: "bigint unsigned", nullable: true),
EquippedGloves = table.Column<ulong>(type: "bigint unsigned", nullable: true),
EquippedAccessory = table.Column<ulong>(type: "bigint unsigned", nullable: true),
TotalKills = table.Column<int>(type: "int", nullable: false),
TotalDeaths = table.Column<int>(type: "int", nullable: false),
PlayersKilled = table.Column<int>(type: "int", nullable: false),
DungeonsCompleted = table.Column<int>(type: "int", nullable: false),
BossesKilled = table.Column<int>(type: "int", nullable: false),
IsDeleted = table.Column<bool>(type: "tinyint(1)", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_dungeon_characters", x => x.Id);
table.ForeignKey(
name: "FK_dungeon_characters_accounts_AccountId",
column: x => x.AccountId,
principalTable: "accounts",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
})
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.CreateTable(
name: "dungeon_item_definitions",
columns: table => new
{
Id = table.Column<int>(type: "int", nullable: false)
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
Name = table.Column<string>(type: "varchar(64)", maxLength: 64, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
Description = table.Column<string>(type: "varchar(256)", maxLength: 256, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
Type = table.Column<int>(type: "int", nullable: false),
Rarity = table.Column<int>(type: "int", nullable: false),
EquipSlot = table.Column<int>(type: "int", nullable: true),
RequiredStrength = table.Column<int>(type: "int", nullable: false),
RequiredIntelligence = table.Column<int>(type: "int", nullable: false),
RequiredWisdom = table.Column<int>(type: "int", nullable: false),
RequiredDexterity = table.Column<int>(type: "int", nullable: false),
RequiredLevel = table.Column<int>(type: "int", nullable: false),
BonusStrength = table.Column<int>(type: "int", nullable: false),
BonusIntelligence = table.Column<int>(type: "int", nullable: false),
BonusWisdom = table.Column<int>(type: "int", nullable: false),
BonusEndurance = table.Column<int>(type: "int", nullable: false),
BonusDexterity = table.Column<int>(type: "int", nullable: false),
BonusHealth = table.Column<int>(type: "int", nullable: false),
BonusMana = table.Column<int>(type: "int", nullable: false),
MinDamage = table.Column<int>(type: "int", nullable: false),
MaxDamage = table.Column<int>(type: "int", nullable: false),
AttackRange = table.Column<float>(type: "float", nullable: false),
DamageType = table.Column<int>(type: "int", nullable: false),
Armor = table.Column<int>(type: "int", nullable: false),
MagicResist = table.Column<int>(type: "int", nullable: false),
HealAmount = table.Column<int>(type: "int", nullable: false),
ManaRestore = table.Column<int>(type: "int", nullable: false),
StaminaRestore = table.Column<int>(type: "int", nullable: false),
IsTeleportScroll = table.Column<bool>(type: "tinyint(1)", nullable: false),
TeachesSpellId = table.Column<int>(type: "int", nullable: true),
Stackable = table.Column<bool>(type: "tinyint(1)", nullable: false),
MaxStack = table.Column<int>(type: "int", nullable: false),
SpriteId = table.Column<int>(type: "int", nullable: false),
IsEnabled = table.Column<bool>(type: "tinyint(1)", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_dungeon_item_definitions", x => x.Id);
})
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.CreateTable(
name: "dungeon_mob_definitions",
columns: table => new
{
Id = table.Column<int>(type: "int", nullable: false)
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
Name = table.Column<string>(type: "varchar(64)", maxLength: 64, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
Description = table.Column<string>(type: "varchar(256)", maxLength: 256, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
Type = table.Column<int>(type: "int", nullable: false),
Category = table.Column<int>(type: "int", nullable: false),
MinTier = table.Column<int>(type: "int", nullable: false),
MaxTier = table.Column<int>(type: "int", nullable: false),
BaseHealth = table.Column<int>(type: "int", nullable: false),
BaseMana = table.Column<int>(type: "int", nullable: false),
BasePhysicalDamage = table.Column<int>(type: "int", nullable: false),
BaseMagicDamage = table.Column<int>(type: "int", nullable: false),
BaseArmor = table.Column<int>(type: "int", nullable: false),
BaseMagicResist = table.Column<int>(type: "int", nullable: false),
MoveSpeed = table.Column<float>(type: "float", nullable: false),
AttackRange = table.Column<float>(type: "float", nullable: false),
AttackSpeed = table.Column<float>(type: "float", nullable: false),
AggroRange = table.Column<float>(type: "float", nullable: false),
LeashRange = table.Column<float>(type: "float", nullable: false),
HealthPerTier = table.Column<float>(type: "float", nullable: false),
DamagePerTier = table.Column<float>(type: "float", nullable: false),
ArmorPerTier = table.Column<float>(type: "float", nullable: false),
BaseXp = table.Column<int>(type: "int", nullable: false),
XpPerTier = table.Column<float>(type: "float", nullable: false),
LootTableId = table.Column<int>(type: "int", nullable: false),
DropChanceMultiplier = table.Column<float>(type: "float", nullable: false),
ResistancesJson = table.Column<string>(type: "varchar(1024)", maxLength: 1024, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
AbilitiesJson = table.Column<string>(type: "varchar(1024)", maxLength: 1024, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
SpriteSheet = table.Column<string>(type: "varchar(128)", maxLength: 128, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
SpriteIndex = table.Column<int>(type: "int", nullable: false),
SpriteWidth = table.Column<int>(type: "int", nullable: false),
SpriteHeight = table.Column<int>(type: "int", nullable: false),
TintColor = table.Column<string>(type: "varchar(16)", maxLength: 16, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
IdleFrames = table.Column<string>(type: "varchar(256)", maxLength: 256, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
WalkFrames = table.Column<string>(type: "varchar(256)", maxLength: 256, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
AttackFrames = table.Column<string>(type: "varchar(256)", maxLength: 256, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
DeathFrames = table.Column<string>(type: "varchar(256)", maxLength: 256, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
AnimationSpeed = table.Column<float>(type: "float", nullable: false),
IsEnabled = table.Column<bool>(type: "tinyint(1)", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_dungeon_mob_definitions", x => x.Id);
})
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.CreateTable(
name: "dungeon_spell_definitions",
columns: table => new
{
Id = table.Column<int>(type: "int", nullable: false)
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
Name = table.Column<string>(type: "varchar(64)", maxLength: 64, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
Description = table.Column<string>(type: "varchar(256)", maxLength: 256, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
Type = table.Column<int>(type: "int", nullable: false),
RequiredWisdom = table.Column<int>(type: "int", nullable: false),
RequiredIntelligence = table.Column<int>(type: "int", nullable: false),
RequiredLevel = table.Column<int>(type: "int", nullable: false),
ManaCost = table.Column<int>(type: "int", nullable: false),
Cooldown = table.Column<float>(type: "float", nullable: false),
BaseDamage = table.Column<int>(type: "int", nullable: false),
BaseHealing = table.Column<int>(type: "int", nullable: false),
Range = table.Column<float>(type: "float", nullable: false),
AreaOfEffect = table.Column<float>(type: "float", nullable: false),
IsTeleport = table.Column<bool>(type: "tinyint(1)", nullable: false),
IsShield = table.Column<bool>(type: "tinyint(1)", nullable: false),
ShieldAmount = table.Column<int>(type: "int", nullable: false),
SpriteId = table.Column<int>(type: "int", nullable: false),
EffectColor = table.Column<string>(type: "longtext", nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
IsEnabled = table.Column<bool>(type: "tinyint(1)", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_dungeon_spell_definitions", x => x.Id);
})
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.CreateTable(
name: "dungeon_character_items",
columns: table => new
{
Id = table.Column<ulong>(type: "bigint unsigned", nullable: false)
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
CharacterId = table.Column<ulong>(type: "bigint unsigned", nullable: false),
ItemDefinitionId = table.Column<int>(type: "int", nullable: false),
Quantity = table.Column<int>(type: "int", nullable: false),
SlotIndex = table.Column<int>(type: "int", nullable: false),
AcquiredAt = table.Column<DateTime>(type: "datetime(6)", nullable: false),
DefinitionId = table.Column<int>(type: "int", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_dungeon_character_items", x => x.Id);
table.ForeignKey(
name: "FK_dungeon_character_items_dungeon_characters_CharacterId",
column: x => x.CharacterId,
principalTable: "dungeon_characters",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
table.ForeignKey(
name: "FK_dungeon_character_items_dungeon_item_definitions_DefinitionId",
column: x => x.DefinitionId,
principalTable: "dungeon_item_definitions",
principalColumn: "Id");
})
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.CreateTable(
name: "dungeon_stash_items",
columns: table => new
{
Id = table.Column<ulong>(type: "bigint unsigned", nullable: false)
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
CharacterId = table.Column<ulong>(type: "bigint unsigned", nullable: false),
ItemDefinitionId = table.Column<int>(type: "int", nullable: false),
Quantity = table.Column<int>(type: "int", nullable: false),
SlotIndex = table.Column<int>(type: "int", nullable: false),
StoredAt = table.Column<DateTime>(type: "datetime(6)", nullable: false),
DefinitionId = table.Column<int>(type: "int", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_dungeon_stash_items", x => x.Id);
table.ForeignKey(
name: "FK_dungeon_stash_items_dungeon_characters_CharacterId",
column: x => x.CharacterId,
principalTable: "dungeon_characters",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
table.ForeignKey(
name: "FK_dungeon_stash_items_dungeon_item_definitions_DefinitionId",
column: x => x.DefinitionId,
principalTable: "dungeon_item_definitions",
principalColumn: "Id");
})
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.CreateTable(
name: "dungeon_learned_spells",
columns: table => new
{
Id = table.Column<ulong>(type: "bigint unsigned", nullable: false)
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
CharacterId = table.Column<ulong>(type: "bigint unsigned", nullable: false),
SpellDefinitionId = table.Column<int>(type: "int", nullable: false),
LearnedAt = table.Column<DateTime>(type: "datetime(6)", nullable: false),
SpellLevel = table.Column<int>(type: "int", nullable: false),
DefinitionId = table.Column<int>(type: "int", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_dungeon_learned_spells", x => x.Id);
table.ForeignKey(
name: "FK_dungeon_learned_spells_dungeon_characters_CharacterId",
column: x => x.CharacterId,
principalTable: "dungeon_characters",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
table.ForeignKey(
name: "FK_dungeon_learned_spells_dungeon_spell_definitions_DefinitionId",
column: x => x.DefinitionId,
principalTable: "dungeon_spell_definitions",
principalColumn: "Id");
})
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.CreateIndex(
name: "IX_dungeon_character_items_CharacterId",
table: "dungeon_character_items",
column: "CharacterId");
migrationBuilder.CreateIndex(
name: "IX_dungeon_character_items_DefinitionId",
table: "dungeon_character_items",
column: "DefinitionId");
migrationBuilder.CreateIndex(
name: "IX_dungeon_characters_AccountId",
table: "dungeon_characters",
column: "AccountId");
migrationBuilder.CreateIndex(
name: "IX_dungeon_learned_spells_CharacterId",
table: "dungeon_learned_spells",
column: "CharacterId");
migrationBuilder.CreateIndex(
name: "IX_dungeon_learned_spells_DefinitionId",
table: "dungeon_learned_spells",
column: "DefinitionId");
migrationBuilder.CreateIndex(
name: "IX_dungeon_stash_items_CharacterId",
table: "dungeon_stash_items",
column: "CharacterId");
migrationBuilder.CreateIndex(
name: "IX_dungeon_stash_items_DefinitionId",
table: "dungeon_stash_items",
column: "DefinitionId");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "dungeon_character_items");
migrationBuilder.DropTable(
name: "dungeon_learned_spells");
migrationBuilder.DropTable(
name: "dungeon_mob_definitions");
migrationBuilder.DropTable(
name: "dungeon_stash_items");
migrationBuilder.DropTable(
name: "dungeon_spell_definitions");
migrationBuilder.DropTable(
name: "dungeon_characters");
migrationBuilder.DropTable(
name: "dungeon_item_definitions");
}
}
}
+603
View File
@@ -81,6 +81,538 @@ namespace SystemRevivalServer.Migrations
b.ToTable("accounts", (string)null);
});
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<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?>("DefinitionId")
.HasColumnType("int");
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("DefinitionId");
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<bool>("Stackable")
.HasColumnType("tinyint(1)");
b.Property<int>("StaminaRestore")
.HasColumnType("int");
b.Property<int?>("TeachesSpellId")
.HasColumnType("int");
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.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<string>("AttackFrames")
.IsRequired()
.HasMaxLength(256)
.HasColumnType("varchar(256)");
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>("DeathFrames")
.IsRequired()
.HasMaxLength(256)
.HasColumnType("varchar(256)");
b.Property<string>("Description")
.IsRequired()
.HasMaxLength(256)
.HasColumnType("varchar(256)");
b.Property<float>("DropChanceMultiplier")
.HasColumnType("float");
b.Property<float>("HealthPerTier")
.HasColumnType("float");
b.Property<string>("IdleFrames")
.IsRequired()
.HasMaxLength(256)
.HasColumnType("varchar(256)");
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<int>("SpriteHeight")
.HasColumnType("int");
b.Property<int>("SpriteIndex")
.HasColumnType("int");
b.Property<string>("SpriteSheet")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("varchar(128)");
b.Property<int>("SpriteWidth")
.HasColumnType("int");
b.Property<string>("TintColor")
.IsRequired()
.HasMaxLength(16)
.HasColumnType("varchar(16)");
b.Property<int>("Type")
.HasColumnType("int");
b.Property<string>("WalkFrames")
.IsRequired()
.HasMaxLength(256)
.HasColumnType("varchar(256)");
b.Property<float>("XpPerTier")
.HasColumnType("float");
b.HasKey("Id");
b.ToTable("dungeon_mob_definitions");
});
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")
@@ -720,6 +1252,68 @@ namespace SystemRevivalServer.Migrations
b.ToTable("zones", (string)null);
});
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", "Definition")
.WithMany()
.HasForeignKey("DefinitionId");
b.Navigation("Character");
b.Navigation("Definition");
});
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.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")
@@ -827,6 +1421,15 @@ namespace SystemRevivalServer.Migrations
b.Navigation("Sessions");
});
modelBuilder.Entity("Server.Data.Entities.DungeonCharacter", b =>
{
b.Navigation("Inventory");
b.Navigation("LearnedSpells");
b.Navigation("Stash");
});
#pragma warning restore 612, 618
}
}