//
using System;
using MUnique.OpenMU.Persistence.EntityFramework;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
#nullable disable
namespace MUnique.OpenMU.Persistence.EntityFramework.Migrations
{
[DbContext(typeof(EntityDataContext))]
[Migration("20221121161552_DeleteCascade")]
partial class DeleteCascade
{
///
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "7.0.0")
.HasAnnotation("Relational:MaxIdentifierLength", 63);
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
modelBuilder.Entity("MUnique.OpenMU.Persistence.EntityFramework.Model.Account", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("EMail")
.IsRequired()
.HasColumnType("text");
b.Property("IsVaultExtended")
.HasColumnType("boolean");
b.Property("LoginName")
.IsRequired()
.HasMaxLength(10)
.HasColumnType("character varying(10)");
b.Property("PasswordHash")
.IsRequired()
.HasColumnType("text");
b.Property("RegistrationDate")
.HasColumnType("timestamp with time zone");
b.Property("SecurityCode")
.IsRequired()
.HasColumnType("text");
b.Property("State")
.HasColumnType("integer");
b.Property("TimeZone")
.HasColumnType("smallint");
b.Property("VaultId")
.HasColumnType("uuid");
b.Property("VaultPassword")
.IsRequired()
.HasColumnType("text");
b.HasKey("Id");
b.HasIndex("LoginName")
.IsUnique();
b.HasIndex("VaultId")
.IsUnique();
b.ToTable("Account", "data");
});
modelBuilder.Entity("MUnique.OpenMU.Persistence.EntityFramework.Model.AccountCharacterClass", b =>
{
b.Property("AccountId")
.HasColumnType("uuid");
b.Property("CharacterClassId")
.HasColumnType("uuid");
b.HasKey("AccountId", "CharacterClassId");
b.HasIndex("CharacterClassId");
b.ToTable("AccountCharacterClass", "data");
});
modelBuilder.Entity("MUnique.OpenMU.Persistence.EntityFramework.Model.AppearanceData", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("CharacterClassId")
.HasColumnType("uuid");
b.Property("FullAncientSetEquipped")
.HasColumnType("boolean");
b.Property("Pose")
.HasColumnType("smallint");
b.HasKey("Id");
b.HasIndex("CharacterClassId");
b.ToTable("AppearanceData", "data");
});
modelBuilder.Entity("MUnique.OpenMU.Persistence.EntityFramework.Model.AttributeDefinition", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("Description")
.HasColumnType("text");
b.Property("Designation")
.HasColumnType("text");
b.Property("GameConfigurationId")
.HasColumnType("uuid");
b.HasKey("Id");
b.HasIndex("GameConfigurationId");
b.ToTable("AttributeDefinition", "config");
});
modelBuilder.Entity("MUnique.OpenMU.Persistence.EntityFramework.Model.AttributeRelationship", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("CharacterClassId")
.HasColumnType("uuid");
b.Property("InputAttributeId")
.HasColumnType("uuid");
b.Property("InputOperand")
.HasColumnType("real");
b.Property("InputOperator")
.HasColumnType("integer");
b.Property("PowerUpDefinitionValueId")
.HasColumnType("uuid");
b.Property("TargetAttributeId")
.HasColumnType("uuid");
b.HasKey("Id");
b.HasIndex("CharacterClassId");
b.HasIndex("InputAttributeId");
b.HasIndex("PowerUpDefinitionValueId");
b.HasIndex("TargetAttributeId");
b.ToTable("AttributeRelationship", "config");
});
modelBuilder.Entity("MUnique.OpenMU.Persistence.EntityFramework.Model.AttributeRequirement", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("AttributeId")
.HasColumnType("uuid");
b.Property("GameMapDefinitionId")
.HasColumnType("uuid");
b.Property("ItemDefinitionId")
.HasColumnType("uuid");
b.Property("MinimumValue")
.HasColumnType("integer");
b.Property("SkillId")
.HasColumnType("uuid");
b.Property("SkillId1")
.HasColumnType("uuid");
b.HasKey("Id");
b.HasIndex("AttributeId");
b.HasIndex("GameMapDefinitionId");
b.HasIndex("ItemDefinitionId");
b.HasIndex("SkillId");
b.HasIndex("SkillId1");
b.ToTable("AttributeRequirement", "config");
});
modelBuilder.Entity("MUnique.OpenMU.Persistence.EntityFramework.Model.BattleZoneDefinition", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("GroundId")
.HasColumnType("uuid");
b.Property("LeftGoalId")
.HasColumnType("uuid");
b.Property("LeftTeamSpawnPointX")
.HasColumnType("smallint");
b.Property("LeftTeamSpawnPointY")
.HasColumnType("smallint");
b.Property("RightGoalId")
.HasColumnType("uuid");
b.Property("RightTeamSpawnPointX")
.HasColumnType("smallint");
b.Property("RightTeamSpawnPointY")
.HasColumnType("smallint");
b.Property("Type")
.HasColumnType("integer");
b.HasKey("Id");
b.HasIndex("GroundId")
.IsUnique();
b.HasIndex("LeftGoalId")
.IsUnique();
b.HasIndex("RightGoalId")
.IsUnique();
b.ToTable("BattleZoneDefinition", "config");
});
modelBuilder.Entity("MUnique.OpenMU.Persistence.EntityFramework.Model.Character", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("AccountId")
.HasColumnType("uuid");
b.Property("CharacterClassId")
.IsRequired()
.HasColumnType("uuid");
b.Property("CharacterSlot")
.HasColumnType("smallint");
b.Property("CharacterStatus")
.HasColumnType("integer");
b.Property("CreateDate")
.HasColumnType("timestamp with time zone");
b.Property("CurrentMapId")
.HasColumnType("uuid");
b.Property("Experience")
.HasColumnType("bigint");
b.Property("InventoryExtensions")
.HasColumnType("integer");
b.Property("InventoryId")
.HasColumnType("uuid");
b.Property("KeyConfiguration")
.HasColumnType("bytea");
b.Property("LevelUpPoints")
.HasColumnType("integer");
b.Property("MasterExperience")
.HasColumnType("bigint");
b.Property("MasterLevelUpPoints")
.HasColumnType("integer");
b.Property("Name")
.IsRequired()
.HasMaxLength(10)
.HasColumnType("character varying(10)");
b.Property("PlayerKillCount")
.HasColumnType("integer");
b.Property("Pose")
.HasColumnType("smallint");
b.Property("PositionX")
.HasColumnType("smallint");
b.Property("PositionY")
.HasColumnType("smallint");
b.Property("State")
.HasColumnType("integer");
b.Property("StateRemainingSeconds")
.HasColumnType("integer");
b.Property("UsedFruitPoints")
.HasColumnType("integer");
b.Property("UsedNegFruitPoints")
.HasColumnType("integer");
b.HasKey("Id");
b.HasIndex("AccountId");
b.HasIndex("CharacterClassId");
b.HasIndex("CurrentMapId");
b.HasIndex("InventoryId")
.IsUnique();
b.HasIndex("Name")
.IsUnique();
b.ToTable("Character", "data");
});
modelBuilder.Entity("MUnique.OpenMU.Persistence.EntityFramework.Model.CharacterClass", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("CanGetCreated")
.HasColumnType("boolean");
b.Property("ComboDefinitionId")
.HasColumnType("uuid");
b.Property("CreationAllowedFlag")
.HasColumnType("smallint");
b.Property("FruitCalculation")
.HasColumnType("integer");
b.Property("GameConfigurationId")
.HasColumnType("uuid");
b.Property("HomeMapId")
.HasColumnType("uuid");
b.Property("IsMasterClass")
.HasColumnType("boolean");
b.Property("LevelRequirementByCreation")
.HasColumnType("smallint");
b.Property("LevelWarpRequirementReductionPercent")
.HasColumnType("integer");
b.Property("Name")
.IsRequired()
.HasColumnType("text");
b.Property("NextGenerationClassId")
.HasColumnType("uuid");
b.Property("Number")
.HasColumnType("smallint");
b.HasKey("Id");
b.HasIndex("ComboDefinitionId")
.IsUnique();
b.HasIndex("GameConfigurationId");
b.HasIndex("HomeMapId");
b.HasIndex("NextGenerationClassId");
b.ToTable("CharacterClass", "config");
});
modelBuilder.Entity("MUnique.OpenMU.Persistence.EntityFramework.Model.CharacterDropItemGroup", b =>
{
b.Property("CharacterId")
.HasColumnType("uuid");
b.Property("DropItemGroupId")
.HasColumnType("uuid");
b.HasKey("CharacterId", "DropItemGroupId");
b.HasIndex("DropItemGroupId");
b.ToTable("CharacterDropItemGroup", "data");
});
modelBuilder.Entity("MUnique.OpenMU.Persistence.EntityFramework.Model.CharacterQuestState", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("ActiveQuestId")
.HasColumnType("uuid");
b.Property("CharacterId")
.HasColumnType("uuid");
b.Property("ClientActionPerformed")
.HasColumnType("boolean");
b.Property("Group")
.HasColumnType("smallint");
b.Property("LastFinishedQuestId")
.HasColumnType("uuid");
b.HasKey("Id");
b.HasIndex("ActiveQuestId");
b.HasIndex("CharacterId");
b.HasIndex("LastFinishedQuestId");
b.ToTable("CharacterQuestState", "data");
});
modelBuilder.Entity("MUnique.OpenMU.Persistence.EntityFramework.Model.ChatServerDefinition", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("ClientCleanUpInterval")
.HasColumnType("interval");
b.Property("ClientTimeout")
.HasColumnType("interval");
b.Property("Description")
.IsRequired()
.HasColumnType("text");
b.Property("MaximumConnections")
.HasColumnType("integer");
b.Property("RoomCleanUpInterval")
.HasColumnType("interval");
b.Property("ServerId")
.HasColumnType("smallint");
b.HasKey("Id");
b.ToTable("ChatServerDefinition", "config");
});
modelBuilder.Entity("MUnique.OpenMU.Persistence.EntityFramework.Model.ChatServerEndpoint", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("ChatServerDefinitionId")
.HasColumnType("uuid");
b.Property("ClientId")
.HasColumnType("uuid");
b.Property("NetworkPort")
.HasColumnType("integer");
b.HasKey("Id");
b.HasIndex("ChatServerDefinitionId");
b.HasIndex("ClientId");
b.ToTable("ChatServerEndpoint", "config");
});
modelBuilder.Entity("MUnique.OpenMU.Persistence.EntityFramework.Model.CombinationBonusRequirement", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("ItemOptionCombinationBonusId")
.HasColumnType("uuid");
b.Property("MinimumCount")
.HasColumnType("integer");
b.Property("OptionTypeId")
.HasColumnType("uuid");
b.Property("SubOptionType")
.HasColumnType("integer");
b.HasKey("Id");
b.HasIndex("ItemOptionCombinationBonusId");
b.HasIndex("OptionTypeId");
b.ToTable("CombinationBonusRequirement", "config");
});
modelBuilder.Entity("MUnique.OpenMU.Persistence.EntityFramework.Model.ConnectServerDefinition", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("CheckMaxConnectionsPerAddress")
.HasColumnType("boolean");
b.Property("ClientId")
.HasColumnType("uuid");
b.Property("ClientListenerPort")
.HasColumnType("integer");
b.Property("CurrentPatchVersion")
.HasColumnType("bytea");
b.Property("Description")
.IsRequired()
.HasColumnType("text");
b.Property("DisconnectOnUnknownPacket")
.HasColumnType("boolean");
b.Property("ListenerBacklog")
.HasColumnType("integer");
b.Property("MaxConnections")
.HasColumnType("integer");
b.Property("MaxConnectionsPerAddress")
.HasColumnType("integer");
b.Property("MaxFtpRequests")
.HasColumnType("integer");
b.Property("MaxIpRequests")
.HasColumnType("integer");
b.Property("MaxServerListRequests")
.HasColumnType("integer");
b.Property("MaximumReceiveSize")
.HasColumnType("smallint");
b.Property("PatchAddress")
.IsRequired()
.HasColumnType("text");
b.Property("ServerId")
.HasColumnType("smallint");
b.Property("Timeout")
.HasColumnType("interval");
b.HasKey("Id");
b.HasIndex("ClientId");
b.ToTable("ConnectServerDefinition", "config");
});
modelBuilder.Entity("MUnique.OpenMU.Persistence.EntityFramework.Model.ConstValueAttribute", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("CharacterClassId")
.HasColumnType("uuid");
b.Property("DefinitionId")
.HasColumnType("uuid");
b.Property("Value")
.HasColumnType("real");
b.HasKey("Id");
b.HasIndex("CharacterClassId");
b.HasIndex("DefinitionId");
b.ToTable("ConstValueAttribute", "config");
});
modelBuilder.Entity("MUnique.OpenMU.Persistence.EntityFramework.Model.DropItemGroup", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("Chance")
.HasColumnType("double precision");
b.Property("Description")
.IsRequired()
.HasColumnType("text");
b.Property("GameConfigurationId")
.HasColumnType("uuid");
b.Property("ItemLevel")
.HasColumnType("smallint");
b.Property("ItemType")
.HasColumnType("integer");
b.Property("MaximumMonsterLevel")
.HasColumnType("smallint");
b.Property("MinimumMonsterLevel")
.HasColumnType("smallint");
b.Property("MonsterId")
.HasColumnType("uuid");
b.HasKey("Id");
b.HasIndex("GameConfigurationId");
b.HasIndex("MonsterId");
b.ToTable("DropItemGroup", "config");
});
modelBuilder.Entity("MUnique.OpenMU.Persistence.EntityFramework.Model.DropItemGroupItemDefinition", b =>
{
b.Property("DropItemGroupId")
.HasColumnType("uuid");
b.Property("ItemDefinitionId")
.HasColumnType("uuid");
b.HasKey("DropItemGroupId", "ItemDefinitionId");
b.HasIndex("ItemDefinitionId");
b.ToTable("DropItemGroupItemDefinition", "config");
});
modelBuilder.Entity("MUnique.OpenMU.Persistence.EntityFramework.Model.EnterGate", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("GameMapDefinitionId")
.HasColumnType("uuid");
b.Property("LevelRequirement")
.HasColumnType("smallint");
b.Property("Number")
.HasColumnType("smallint");
b.Property("TargetGateId")
.HasColumnType("uuid");
b.Property("X1")
.HasColumnType("smallint");
b.Property("X2")
.HasColumnType("smallint");
b.Property("Y1")
.HasColumnType("smallint");
b.Property("Y2")
.HasColumnType("smallint");
b.HasKey("Id");
b.HasIndex("GameMapDefinitionId");
b.HasIndex("TargetGateId");
b.ToTable("EnterGate", "config");
});
modelBuilder.Entity("MUnique.OpenMU.Persistence.EntityFramework.Model.ExitGate", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("Direction")
.HasColumnType("integer");
b.Property("IsSpawnGate")
.HasColumnType("boolean");
b.Property("MapId")
.HasColumnType("uuid");
b.Property("X1")
.HasColumnType("smallint");
b.Property("X2")
.HasColumnType("smallint");
b.Property("Y1")
.HasColumnType("smallint");
b.Property("Y2")
.HasColumnType("smallint");
b.HasKey("Id");
b.HasIndex("MapId");
b.ToTable("ExitGate", "config");
});
modelBuilder.Entity("MUnique.OpenMU.Persistence.EntityFramework.Model.Friend", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("Accepted")
.HasColumnType("boolean");
b.Property("CharacterId")
.HasColumnType("uuid");
b.Property("FriendId")
.HasColumnType("uuid");
b.Property("RequestOpen")
.HasColumnType("boolean");
b.HasKey("Id");
b.HasAlternateKey("CharacterId", "FriendId");
b.ToTable("Friend", "friend");
});
modelBuilder.Entity("MUnique.OpenMU.Persistence.EntityFramework.Model.GameClientDefinition", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("Description")
.IsRequired()
.HasColumnType("text");
b.Property("Episode")
.HasColumnType("smallint");
b.Property("Language")
.HasColumnType("integer");
b.Property("Season")
.HasColumnType("smallint");
b.Property("Serial")
.HasColumnType("bytea");
b.Property("Version")
.HasColumnType("bytea");
b.HasKey("Id");
b.ToTable("GameClientDefinition", "config");
});
modelBuilder.Entity("MUnique.OpenMU.Persistence.EntityFramework.Model.GameConfiguration", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("AreaSkillHitsPlayer")
.HasColumnType("boolean");
b.Property("CharacterNameRegex")
.HasColumnType("text");
b.Property("DamagePerOneItemDurability")
.HasColumnType("double precision");
b.Property("DamagePerOnePetDurability")
.HasColumnType("double precision");
b.Property("ExperienceRate")
.HasColumnType("real");
b.Property("HitsPerOneItemDurability")
.HasColumnType("double precision");
b.Property("InfoRange")
.HasColumnType("smallint");
b.Property("LetterSendPrice")
.HasColumnType("integer");
b.Property("MaximumCharactersPerAccount")
.HasColumnType("smallint");
b.Property("MaximumInventoryMoney")
.HasColumnType("integer");
b.Property("MaximumLetters")
.HasColumnType("integer");
b.Property("MaximumLevel")
.HasColumnType("smallint");
b.Property("MaximumMasterLevel")
.HasColumnType("smallint");
b.Property("MaximumPartySize")
.HasColumnType("smallint");
b.Property("MaximumPasswordLength")
.HasColumnType("integer");
b.Property("MaximumVaultMoney")
.HasColumnType("integer");
b.Property("MinimumMonsterLevelForMasterExperience")
.HasColumnType("smallint");
b.Property("RecoveryInterval")
.HasColumnType("integer");
b.Property("ShouldDropMoney")
.HasColumnType("boolean");
b.HasKey("Id");
b.ToTable("GameConfiguration", "config");
});
modelBuilder.Entity("MUnique.OpenMU.Persistence.EntityFramework.Model.GameMapDefinition", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("BattleZoneId")
.HasColumnType("uuid");
b.Property("Discriminator")
.HasColumnType("integer");
b.Property("ExpMultiplier")
.HasColumnType("double precision");
b.Property("GameConfigurationId")
.HasColumnType("uuid");
b.Property("Name")
.IsRequired()
.HasColumnType("text");
b.Property("Number")
.HasColumnType("smallint");
b.Property("SafezoneMapId")
.HasColumnType("uuid");
b.Property("TerrainData")
.HasColumnType("bytea");
b.HasKey("Id");
b.HasIndex("BattleZoneId")
.IsUnique();
b.HasIndex("GameConfigurationId");
b.HasIndex("SafezoneMapId");
b.ToTable("GameMapDefinition", "config");
});
modelBuilder.Entity("MUnique.OpenMU.Persistence.EntityFramework.Model.GameMapDefinitionDropItemGroup", b =>
{
b.Property("GameMapDefinitionId")
.HasColumnType("uuid");
b.Property("DropItemGroupId")
.HasColumnType("uuid");
b.HasKey("GameMapDefinitionId", "DropItemGroupId");
b.HasIndex("DropItemGroupId");
b.ToTable("GameMapDefinitionDropItemGroup", "config");
});
modelBuilder.Entity("MUnique.OpenMU.Persistence.EntityFramework.Model.GameServerConfiguration", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("MaximumPlayers")
.HasColumnType("smallint");
b.HasKey("Id");
b.ToTable("GameServerConfiguration", "config");
});
modelBuilder.Entity("MUnique.OpenMU.Persistence.EntityFramework.Model.GameServerConfigurationGameMapDefinition", b =>
{
b.Property("GameServerConfigurationId")
.HasColumnType("uuid");
b.Property("GameMapDefinitionId")
.HasColumnType("uuid");
b.HasKey("GameServerConfigurationId", "GameMapDefinitionId");
b.HasIndex("GameMapDefinitionId");
b.ToTable("GameServerConfigurationGameMapDefinition", "config");
});
modelBuilder.Entity("MUnique.OpenMU.Persistence.EntityFramework.Model.GameServerDefinition", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("Description")
.IsRequired()
.HasColumnType("text");
b.Property("ExperienceRate")
.HasColumnType("real");
b.Property("GameConfigurationId")
.HasColumnType("uuid");
b.Property("ServerConfigurationId")
.HasColumnType("uuid");
b.Property("ServerID")
.HasColumnType("smallint");
b.HasKey("Id");
b.HasIndex("GameConfigurationId");
b.HasIndex("ServerConfigurationId");
b.ToTable("GameServerDefinition", "config");
});
modelBuilder.Entity("MUnique.OpenMU.Persistence.EntityFramework.Model.GameServerEndpoint", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("AlternativePublishedPort")
.HasColumnType("integer");
b.Property("ClientId")
.HasColumnType("uuid");
b.Property("GameServerDefinitionId")
.HasColumnType("uuid");
b.Property("NetworkPort")
.HasColumnType("integer");
b.HasKey("Id");
b.HasIndex("ClientId");
b.HasIndex("GameServerDefinitionId");
b.ToTable("GameServerEndpoint", "config");
});
modelBuilder.Entity("MUnique.OpenMU.Persistence.EntityFramework.Model.Guild", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("AllianceGuildId")
.HasColumnType("uuid");
b.Property("HostilityId")
.HasColumnType("uuid");
b.Property("Logo")
.HasColumnType("bytea");
b.Property("Name")
.IsRequired()
.HasMaxLength(8)
.HasColumnType("character varying(8)");
b.Property("Notice")
.HasColumnType("text");
b.Property("Score")
.HasColumnType("integer");
b.HasKey("Id");
b.HasIndex("AllianceGuildId");
b.HasIndex("HostilityId");
b.HasIndex("Name")
.IsUnique();
b.ToTable("Guild", "guild");
});
modelBuilder.Entity("MUnique.OpenMU.Persistence.EntityFramework.Model.GuildMember", b =>
{
b.Property("Id")
.HasColumnType("uuid");
b.Property("GuildId")
.HasColumnType("uuid");
b.Property("Status")
.HasColumnType("smallint");
b.HasKey("Id");
b.HasIndex("GuildId");
b.ToTable("GuildMember", "guild");
});
modelBuilder.Entity("MUnique.OpenMU.Persistence.EntityFramework.Model.IncreasableItemOption", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("ItemOptionDefinitionId")
.HasColumnType("uuid");
b.Property("ItemSetGroupId")
.HasColumnType("uuid");
b.Property("LevelType")
.HasColumnType("integer");
b.Property("Number")
.HasColumnType("integer");
b.Property("OptionTypeId")
.HasColumnType("uuid");
b.Property("PowerUpDefinitionId")
.HasColumnType("uuid");
b.Property("SubOptionType")
.HasColumnType("integer");
b.HasKey("Id");
b.HasIndex("ItemOptionDefinitionId");
b.HasIndex("ItemSetGroupId");
b.HasIndex("OptionTypeId");
b.HasIndex("PowerUpDefinitionId")
.IsUnique();
b.ToTable("IncreasableItemOption", "config");
});
modelBuilder.Entity("MUnique.OpenMU.Persistence.EntityFramework.Model.Item", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("DefinitionId")
.HasColumnType("uuid");
b.Property("Durability")
.HasColumnType("double precision");
b.Property("HasSkill")
.HasColumnType("boolean");
b.Property("ItemSlot")
.HasColumnType("smallint");
b.Property("ItemStorageId")
.HasColumnType("uuid");
b.Property("Level")
.HasColumnType("smallint");
b.Property("PetExperience")
.HasColumnType("integer");
b.Property("SocketCount")
.HasColumnType("integer");
b.Property("StorePrice")
.HasColumnType("integer");
b.HasKey("Id");
b.HasIndex("DefinitionId");
b.HasIndex("ItemStorageId");
b.ToTable("Item", "data");
});
modelBuilder.Entity("MUnique.OpenMU.Persistence.EntityFramework.Model.ItemAppearance", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("AppearanceDataId")
.HasColumnType("uuid");
b.Property("DefinitionId")
.HasColumnType("uuid");
b.Property("ItemSlot")
.HasColumnType("smallint");
b.Property("Level")
.HasColumnType("smallint");
b.HasKey("Id");
b.HasIndex("AppearanceDataId");
b.HasIndex("DefinitionId");
b.ToTable("ItemAppearance", "data");
});
modelBuilder.Entity("MUnique.OpenMU.Persistence.EntityFramework.Model.ItemAppearanceItemOptionType", b =>
{
b.Property("ItemAppearanceId")
.HasColumnType("uuid");
b.Property("ItemOptionTypeId")
.HasColumnType("uuid");
b.HasKey("ItemAppearanceId", "ItemOptionTypeId");
b.HasIndex("ItemOptionTypeId");
b.ToTable("ItemAppearanceItemOptionType", "data");
});
modelBuilder.Entity("MUnique.OpenMU.Persistence.EntityFramework.Model.ItemBasePowerUpDefinition", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("BaseValue")
.HasColumnType("real");
b.Property("BonusPerLevelTableId")
.HasColumnType("uuid");
b.Property("ItemDefinitionId")
.HasColumnType("uuid");
b.Property("TargetAttributeId")
.HasColumnType("uuid");
b.HasKey("Id");
b.HasIndex("BonusPerLevelTableId");
b.HasIndex("ItemDefinitionId");
b.HasIndex("TargetAttributeId");
b.ToTable("ItemBasePowerUpDefinition", "config");
});
modelBuilder.Entity("MUnique.OpenMU.Persistence.EntityFramework.Model.ItemCrafting", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("ItemCraftingHandlerClassName")
.IsRequired()
.HasColumnType("text");
b.Property("MonsterDefinitionId")
.HasColumnType("uuid");
b.Property