missed a reference
This commit is contained in:
+2278
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,330 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Metadata;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace SystemRevivalServer.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class CraftingSystem : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "dungeon_character_crafting_skills",
|
||||
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),
|
||||
SkillType = table.Column<int>(type: "int", nullable: false),
|
||||
Level = table.Column<int>(type: "int", nullable: false),
|
||||
Experience = table.Column<long>(type: "bigint", nullable: false),
|
||||
TotalItemsCrafted = table.Column<int>(type: "int", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_dungeon_character_crafting_skills", x => x.Id);
|
||||
table.ForeignKey(
|
||||
name: "FK_dungeon_character_crafting_skills_dungeon_characters_Charact~",
|
||||
column: x => x.CharacterId,
|
||||
principalTable: "dungeon_characters",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
})
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "dungeon_crafting_recipes",
|
||||
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"),
|
||||
SkillType = table.Column<int>(type: "int", nullable: false),
|
||||
RequiredLevel = table.Column<int>(type: "int", nullable: false),
|
||||
OutputItemDefinitionId = table.Column<int>(type: "int", nullable: false),
|
||||
OutputQuantity = table.Column<int>(type: "int", nullable: false),
|
||||
Tier = table.Column<int>(type: "int", nullable: false),
|
||||
BaseXp = table.Column<int>(type: "int", nullable: false),
|
||||
IsBaseRecipe = table.Column<bool>(type: "tinyint(1)", nullable: false),
|
||||
HasStatRolls = table.Column<bool>(type: "tinyint(1)", nullable: false),
|
||||
PossibleStatsJson = table.Column<string>(type: "varchar(1024)", maxLength: 1024, nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
IsEnabled = table.Column<bool>(type: "tinyint(1)", nullable: false),
|
||||
OutputItemId = table.Column<int>(type: "int", nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_dungeon_crafting_recipes", x => x.Id);
|
||||
table.ForeignKey(
|
||||
name: "FK_dungeon_crafting_recipes_dungeon_item_definitions_OutputItem~",
|
||||
column: x => x.OutputItemId,
|
||||
principalTable: "dungeon_item_definitions",
|
||||
principalColumn: "Id");
|
||||
})
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "dungeon_character_known_recipes",
|
||||
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),
|
||||
RecipeId = table.Column<int>(type: "int", nullable: false),
|
||||
DiscoveredAt = table.Column<DateTime>(type: "datetime(6)", nullable: false),
|
||||
TimesCrafted = table.Column<int>(type: "int", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_dungeon_character_known_recipes", x => x.Id);
|
||||
table.ForeignKey(
|
||||
name: "FK_dungeon_character_known_recipes_dungeon_characters_Character~",
|
||||
column: x => x.CharacterId,
|
||||
principalTable: "dungeon_characters",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
table.ForeignKey(
|
||||
name: "FK_dungeon_character_known_recipes_dungeon_crafting_recipes_Rec~",
|
||||
column: x => x.RecipeId,
|
||||
principalTable: "dungeon_crafting_recipes",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
})
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "dungeon_crafted_items",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<ulong>(type: "bigint unsigned", nullable: false)
|
||||
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
|
||||
BaseItemDefinitionId = table.Column<int>(type: "int", nullable: false),
|
||||
CrafterId = table.Column<ulong>(type: "bigint unsigned", nullable: true),
|
||||
CrafterName = table.Column<string>(type: "varchar(32)", maxLength: 32, nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
RecipeId = table.Column<int>(type: "int", nullable: true),
|
||||
CraftedAt = table.Column<DateTime>(type: "datetime(6)", nullable: false),
|
||||
CraftingLevelAtCreation = table.Column<int>(type: "int", nullable: false),
|
||||
RolledBonusStrength = table.Column<int>(type: "int", nullable: false),
|
||||
RolledBonusIntelligence = table.Column<int>(type: "int", nullable: false),
|
||||
RolledBonusWisdom = table.Column<int>(type: "int", nullable: false),
|
||||
RolledBonusEndurance = table.Column<int>(type: "int", nullable: false),
|
||||
RolledBonusDexterity = table.Column<int>(type: "int", nullable: false),
|
||||
RolledBonusHealth = table.Column<int>(type: "int", nullable: false),
|
||||
RolledBonusMana = table.Column<int>(type: "int", nullable: false),
|
||||
RolledBonusArmor = table.Column<int>(type: "int", nullable: false),
|
||||
RolledBonusMagicResist = table.Column<int>(type: "int", nullable: false),
|
||||
RolledBonusMinDamage = table.Column<int>(type: "int", nullable: false),
|
||||
RolledBonusMaxDamage = table.Column<int>(type: "int", nullable: false),
|
||||
RolledBonusHealAmount = table.Column<int>(type: "int", nullable: false),
|
||||
RolledBonusManaRestore = table.Column<int>(type: "int", nullable: false),
|
||||
QualityRating = table.Column<int>(type: "int", nullable: false),
|
||||
CustomName = table.Column<string>(type: "varchar(64)", maxLength: 64, nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
RollHistoryJson = table.Column<string>(type: "varchar(1024)", maxLength: 1024, nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8mb4")
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_dungeon_crafted_items", x => x.Id);
|
||||
table.ForeignKey(
|
||||
name: "FK_dungeon_crafted_items_dungeon_characters_CrafterId",
|
||||
column: x => x.CrafterId,
|
||||
principalTable: "dungeon_characters",
|
||||
principalColumn: "Id");
|
||||
table.ForeignKey(
|
||||
name: "FK_dungeon_crafted_items_dungeon_crafting_recipes_RecipeId",
|
||||
column: x => x.RecipeId,
|
||||
principalTable: "dungeon_crafting_recipes",
|
||||
principalColumn: "Id");
|
||||
table.ForeignKey(
|
||||
name: "FK_dungeon_crafted_items_dungeon_item_definitions_BaseItemDefin~",
|
||||
column: x => x.BaseItemDefinitionId,
|
||||
principalTable: "dungeon_item_definitions",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
})
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "dungeon_crafting_recipe_ingredients",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<int>(type: "int", nullable: false)
|
||||
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
|
||||
RecipeId = table.Column<int>(type: "int", nullable: false),
|
||||
ItemDefinitionId = table.Column<int>(type: "int", nullable: false),
|
||||
Quantity = table.Column<int>(type: "int", nullable: false),
|
||||
SlotOrder = table.Column<int>(type: "int", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_dungeon_crafting_recipe_ingredients", x => x.Id);
|
||||
table.ForeignKey(
|
||||
name: "FK_dungeon_crafting_recipe_ingredients_dungeon_crafting_recipes~",
|
||||
column: x => x.RecipeId,
|
||||
principalTable: "dungeon_crafting_recipes",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
table.ForeignKey(
|
||||
name: "FK_dungeon_crafting_recipe_ingredients_dungeon_item_definitions~",
|
||||
column: x => x.ItemDefinitionId,
|
||||
principalTable: "dungeon_item_definitions",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
})
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "dungeon_recipe_scrolls",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<int>(type: "int", nullable: false)
|
||||
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
|
||||
ItemDefinitionId = table.Column<int>(type: "int", nullable: false),
|
||||
RecipeId = table.Column<int>(type: "int", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_dungeon_recipe_scrolls", x => x.Id);
|
||||
table.ForeignKey(
|
||||
name: "FK_dungeon_recipe_scrolls_dungeon_crafting_recipes_RecipeId",
|
||||
column: x => x.RecipeId,
|
||||
principalTable: "dungeon_crafting_recipes",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
table.ForeignKey(
|
||||
name: "FK_dungeon_recipe_scrolls_dungeon_item_definitions_ItemDefiniti~",
|
||||
column: x => x.ItemDefinitionId,
|
||||
principalTable: "dungeon_item_definitions",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
})
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "dungeon_character_item_crafted_link",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<ulong>(type: "bigint unsigned", nullable: false)
|
||||
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
|
||||
CharacterItemId = table.Column<ulong>(type: "bigint unsigned", nullable: false),
|
||||
CraftedItemId = table.Column<ulong>(type: "bigint unsigned", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_dungeon_character_item_crafted_link", x => x.Id);
|
||||
table.ForeignKey(
|
||||
name: "FK_dungeon_character_item_crafted_link_dungeon_character_items_~",
|
||||
column: x => x.CharacterItemId,
|
||||
principalTable: "dungeon_character_items",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
table.ForeignKey(
|
||||
name: "FK_dungeon_character_item_crafted_link_dungeon_crafted_items_Cr~",
|
||||
column: x => x.CraftedItemId,
|
||||
principalTable: "dungeon_crafted_items",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
})
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_dungeon_character_crafting_skills_CharacterId",
|
||||
table: "dungeon_character_crafting_skills",
|
||||
column: "CharacterId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_dungeon_character_item_crafted_link_CharacterItemId",
|
||||
table: "dungeon_character_item_crafted_link",
|
||||
column: "CharacterItemId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_dungeon_character_item_crafted_link_CraftedItemId",
|
||||
table: "dungeon_character_item_crafted_link",
|
||||
column: "CraftedItemId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_dungeon_character_known_recipes_CharacterId",
|
||||
table: "dungeon_character_known_recipes",
|
||||
column: "CharacterId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_dungeon_character_known_recipes_RecipeId",
|
||||
table: "dungeon_character_known_recipes",
|
||||
column: "RecipeId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_dungeon_crafted_items_BaseItemDefinitionId",
|
||||
table: "dungeon_crafted_items",
|
||||
column: "BaseItemDefinitionId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_dungeon_crafted_items_CrafterId",
|
||||
table: "dungeon_crafted_items",
|
||||
column: "CrafterId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_dungeon_crafted_items_RecipeId",
|
||||
table: "dungeon_crafted_items",
|
||||
column: "RecipeId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_dungeon_crafting_recipe_ingredients_ItemDefinitionId",
|
||||
table: "dungeon_crafting_recipe_ingredients",
|
||||
column: "ItemDefinitionId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_dungeon_crafting_recipe_ingredients_RecipeId",
|
||||
table: "dungeon_crafting_recipe_ingredients",
|
||||
column: "RecipeId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_dungeon_crafting_recipes_OutputItemId",
|
||||
table: "dungeon_crafting_recipes",
|
||||
column: "OutputItemId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_dungeon_recipe_scrolls_ItemDefinitionId",
|
||||
table: "dungeon_recipe_scrolls",
|
||||
column: "ItemDefinitionId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_dungeon_recipe_scrolls_RecipeId",
|
||||
table: "dungeon_recipe_scrolls",
|
||||
column: "RecipeId");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "dungeon_character_crafting_skills");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "dungeon_character_item_crafted_link");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "dungeon_character_known_recipes");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "dungeon_crafting_recipe_ingredients");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "dungeon_recipe_scrolls");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "dungeon_crafted_items");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "dungeon_crafting_recipes");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -343,6 +343,36 @@ namespace SystemRevivalServer.Migrations
|
||||
b.ToTable("dungeon_characters");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Server.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("Server.Data.Entities.DungeonCharacterItem", b =>
|
||||
{
|
||||
b.Property<ulong>("Id")
|
||||
@@ -381,6 +411,234 @@ namespace SystemRevivalServer.Migrations
|
||||
b.ToTable("dungeon_character_items");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Server.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("Server.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("Server.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("Server.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<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?>("OutputItemId")
|
||||
.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("OutputItemId");
|
||||
|
||||
b.ToTable("dungeon_crafting_recipes");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Server.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("Server.Data.Entities.DungeonItemDefinition", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
@@ -830,6 +1088,29 @@ namespace SystemRevivalServer.Migrations
|
||||
b.ToTable("dungeon_instances");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Server.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("Server.Data.Entities.DungeonSpellDefinition", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
@@ -1634,6 +1915,17 @@ namespace SystemRevivalServer.Migrations
|
||||
b.Navigation("Account");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Server.Data.Entities.DungeonCharacterCraftingSkill", b =>
|
||||
{
|
||||
b.HasOne("Server.Data.Entities.DungeonCharacter", "Character")
|
||||
.WithMany("CraftingSkills")
|
||||
.HasForeignKey("CharacterId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Character");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Server.Data.Entities.DungeonCharacterItem", b =>
|
||||
{
|
||||
b.HasOne("Server.Data.Entities.DungeonCharacter", "Character")
|
||||
@@ -1653,6 +1945,95 @@ namespace SystemRevivalServer.Migrations
|
||||
b.Navigation("ItemDefinition");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Server.Data.Entities.DungeonCharacterItemCraftedLink", b =>
|
||||
{
|
||||
b.HasOne("Server.Data.Entities.DungeonCharacterItem", "CharacterItem")
|
||||
.WithMany()
|
||||
.HasForeignKey("CharacterItemId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("Server.Data.Entities.DungeonCraftedItem", "CraftedItem")
|
||||
.WithMany()
|
||||
.HasForeignKey("CraftedItemId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("CharacterItem");
|
||||
|
||||
b.Navigation("CraftedItem");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Server.Data.Entities.DungeonCharacterKnownRecipe", b =>
|
||||
{
|
||||
b.HasOne("Server.Data.Entities.DungeonCharacter", "Character")
|
||||
.WithMany("KnownRecipes")
|
||||
.HasForeignKey("CharacterId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("Server.Data.Entities.DungeonCraftingRecipe", "Recipe")
|
||||
.WithMany()
|
||||
.HasForeignKey("RecipeId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Character");
|
||||
|
||||
b.Navigation("Recipe");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Server.Data.Entities.DungeonCraftedItem", b =>
|
||||
{
|
||||
b.HasOne("Server.Data.Entities.DungeonItemDefinition", "BaseItemDefinition")
|
||||
.WithMany()
|
||||
.HasForeignKey("BaseItemDefinitionId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("Server.Data.Entities.DungeonCharacter", "Crafter")
|
||||
.WithMany()
|
||||
.HasForeignKey("CrafterId");
|
||||
|
||||
b.HasOne("Server.Data.Entities.DungeonCraftingRecipe", "Recipe")
|
||||
.WithMany()
|
||||
.HasForeignKey("RecipeId");
|
||||
|
||||
b.Navigation("BaseItemDefinition");
|
||||
|
||||
b.Navigation("Crafter");
|
||||
|
||||
b.Navigation("Recipe");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Server.Data.Entities.DungeonCraftingRecipe", b =>
|
||||
{
|
||||
b.HasOne("Server.Data.Entities.DungeonItemDefinition", "OutputItem")
|
||||
.WithMany()
|
||||
.HasForeignKey("OutputItemId");
|
||||
|
||||
b.Navigation("OutputItem");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Server.Data.Entities.DungeonCraftingRecipeIngredient", b =>
|
||||
{
|
||||
b.HasOne("Server.Data.Entities.DungeonItemDefinition", "ItemDefinition")
|
||||
.WithMany()
|
||||
.HasForeignKey("ItemDefinitionId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("Server.Data.Entities.DungeonCraftingRecipe", "Recipe")
|
||||
.WithMany("Ingredients")
|
||||
.HasForeignKey("RecipeId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("ItemDefinition");
|
||||
|
||||
b.Navigation("Recipe");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Server.Data.Entities.DungeonLearnedSpell", b =>
|
||||
{
|
||||
b.HasOne("Server.Data.Entities.DungeonCharacter", "Character")
|
||||
@@ -1717,6 +2098,25 @@ namespace SystemRevivalServer.Migrations
|
||||
b.Navigation("Creator");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Server.Data.Entities.DungeonRecipeScroll", b =>
|
||||
{
|
||||
b.HasOne("Server.Data.Entities.DungeonItemDefinition", "ItemDefinition")
|
||||
.WithMany()
|
||||
.HasForeignKey("ItemDefinitionId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("Server.Data.Entities.DungeonCraftingRecipe", "Recipe")
|
||||
.WithMany()
|
||||
.HasForeignKey("RecipeId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("ItemDefinition");
|
||||
|
||||
b.Navigation("Recipe");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Server.Data.Entities.DungeonStashItem", b =>
|
||||
{
|
||||
b.HasOne("Server.Data.Entities.DungeonCharacter", "Character")
|
||||
@@ -1849,13 +2249,22 @@ namespace SystemRevivalServer.Migrations
|
||||
|
||||
modelBuilder.Entity("Server.Data.Entities.DungeonCharacter", b =>
|
||||
{
|
||||
b.Navigation("CraftingSkills");
|
||||
|
||||
b.Navigation("Inventory");
|
||||
|
||||
b.Navigation("KnownRecipes");
|
||||
|
||||
b.Navigation("LearnedSpells");
|
||||
|
||||
b.Navigation("Stash");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Server.Data.Entities.DungeonCraftingRecipe", b =>
|
||||
{
|
||||
b.Navigation("Ingredients");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Server.Data.Entities.DungeonLootTable", b =>
|
||||
{
|
||||
b.Navigation("Entries");
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Server.Data.Enums;
|
||||
|
||||
namespace Server.Data.Entities;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user