//
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("20260801162427_ConfigureCastleSiegePersistence")]
partial class ConfigureCastleSiegePersistence
{
///
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "10.0.2")
.HasAnnotation("Relational:MaxIdentifierLength", 63);
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
modelBuilder.Entity("MUnique.OpenMU.Persistence.EntityFramework.Model.Account", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("ChatBanUntil")
.HasColumnType("timestamp with time zone");
b.Property("EMail")
.IsRequired()
.HasColumnType("text");
b.Property("IsBot")
.HasColumnType("boolean");
b.Property("IsTemplate")
.HasColumnType("boolean");
b.Property("IsVaultExtended")
.HasColumnType("boolean");
b.Property("LanguageIsoCode")
.IsRequired()
.ValueGeneratedOnAdd()
.HasMaxLength(3)
.HasColumnType("character varying(3)")
.HasDefaultValue("en");
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.AreaSkillSettings", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("DelayBetweenHits")
.HasColumnType("interval");
b.Property("DelayPerOneDistance")
.HasColumnType("interval");
b.Property("EffectRange")
.HasColumnType("integer");
b.Property("FrustumDistance")
.HasColumnType("real");
b.Property("FrustumEndWidth")
.HasColumnType("real");
b.Property("FrustumStartWidth")
.HasColumnType("real");
b.Property("HitChancePerDistanceMultiplier")
.HasColumnType("real");
b.Property("MaximumNumberOfHitsPerAttack")
.HasColumnType("integer");
b.Property("MaximumNumberOfHitsPerTarget")
.HasColumnType("integer");
b.Property("MinimumNumberOfHitsPerAttack")
.HasColumnType("integer");
b.Property("MinimumNumberOfHitsPerTarget")
.HasColumnType("integer");
b.Property("ProjectileCount")
.HasColumnType("integer");
b.Property("TargetAreaDiameter")
.HasColumnType("real");
b.Property("UseDeferredHits")
.HasColumnType("boolean");
b.Property("UseFrustumFilter")
.HasColumnType("boolean");
b.Property("UseTargetAreaFilter")
.HasColumnType("boolean");
b.HasKey("Id");
b.ToTable("AreaSkillSettings", "config");
});
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.Property("MaximumValue")
.HasColumnType("real");
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("AggregateType")
.HasColumnType("integer");
b.Property("CharacterClassId")
.HasColumnType("uuid");
b.Property("GameConfigurationId")
.HasColumnType("uuid");
b.Property("InputAttributeId")
.HasColumnType("uuid");
b.Property("InputOperand")
.HasColumnType("real");
b.Property("InputOperator")
.HasColumnType("integer");
b.Property("OperandAttributeId")
.HasColumnType("uuid");
b.Property("PowerUpDefinitionValueId")
.HasColumnType("uuid");
b.Property("SkillId")
.HasColumnType("uuid");
b.Property("TargetAttributeId")
.HasColumnType("uuid");
b.HasKey("Id");
b.HasIndex("CharacterClassId");
b.HasIndex("GameConfigurationId");
b.HasIndex("InputAttributeId");
b.HasIndex("OperandAttributeId");
b.HasIndex("PowerUpDefinitionValueId");
b.HasIndex("SkillId");
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.Buff", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("MagicEffectDefinitionId")
.HasColumnType("uuid");
b.Property("MaximumLevel")
.HasColumnType("integer");
b.Property("MinimumLevel")
.HasColumnType("integer");
b.Property("MonsterDefinitionId")
.HasColumnType("uuid");
b.HasKey("Id");
b.HasIndex("MagicEffectDefinitionId")
.IsUnique();
b.HasIndex("MonsterDefinitionId");
b.ToTable("Buff", "config");
});
modelBuilder.Entity("MUnique.OpenMU.Persistence.EntityFramework.Model.CastleSiegeConfiguration", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("AttackRespawnAreaId")
.HasColumnType("uuid");
b.Property("CastleSiegeMapDefinitionId")
.HasColumnType("uuid");
b.Property("CrownHoldTimeSeconds")
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasDefaultValue(30);
b.Property("DefenseRespawnAreaId")
.HasColumnType("uuid");
b.Property("Enabled")
.HasColumnType("boolean");
b.Property("GateBuyPrice")
.HasColumnType("integer");
b.Property("GuildScoreCastleSiege")
.HasColumnType("integer");
b.Property("GuildScoreCastleSiegeMembers")
.HasColumnType("integer");
b.Property("LandOfTrialsMapDefinitionId")
.HasColumnType("uuid");
b.Property("MaxAttackingGuilds")
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasDefaultValue(3);
b.Property("ParticipantRewardMinSeconds")
.HasColumnType("integer");
b.Property("RegisterMinLevel")
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasDefaultValue(200);
b.Property("RegisterMinMembers")
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasDefaultValue(20);
b.Property("RewardItemDefinitionId")
.HasColumnType("uuid");
b.Property("StatueBuyPrice")
.HasColumnType("integer");
b.HasKey("Id");
b.HasIndex("AttackRespawnAreaId")
.IsUnique();
b.HasIndex("CastleSiegeMapDefinitionId");
b.HasIndex("DefenseRespawnAreaId")
.IsUnique();
b.HasIndex("LandOfTrialsMapDefinitionId");
b.HasIndex("RewardItemDefinitionId");
b.ToTable("CastleSiegeConfiguration", "config");
});
modelBuilder.Entity("MUnique.OpenMU.Persistence.EntityFramework.Model.CastleSiegeData", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("IsHuntZoneEnabled")
.HasColumnType("boolean");
b.Property("IsOccupied")
.HasColumnType("boolean");
b.Property("OwnerGuildId")
.HasColumnType("uuid");
b.Property("TaxChaos")
.HasColumnType("smallint");
b.Property("TaxHunt")
.HasColumnType("integer");
b.Property("TaxStore")
.HasColumnType("smallint");
b.Property("TributeMoney")
.HasColumnType("bigint");
b.HasKey("Id");
b.HasIndex("OwnerGuildId");
b.ToTable("CastleSiegeData", "data");
});
modelBuilder.Entity("MUnique.OpenMU.Persistence.EntityFramework.Model.CastleSiegeGuildRegistration", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("GuildId")
.HasColumnType("uuid");
b.Property("GuildName")
.IsRequired()
.HasMaxLength(8)
.HasColumnType("character varying(8)");
b.Property("Marks")
.HasColumnType("integer");
b.Property("RegistrationOrder")
.HasColumnType("integer");
b.HasKey("Id");
b.HasIndex("GuildId")
.IsUnique();
b.ToTable("CastleSiegeGuildRegistration", "data");
});
modelBuilder.Entity("MUnique.OpenMU.Persistence.EntityFramework.Model.CastleSiegeNpcDefinition", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("CastleSiegeConfigurationId")
.HasColumnType("uuid");
b.Property("DefaultSide")
.HasColumnType("smallint");
b.Property("Direction")
.HasColumnType("integer");
b.Property("InstanceId")
.HasColumnType("smallint");
b.Property("IsPersistedToDatabase")
.HasColumnType("boolean");
b.Property("MonsterDefinitionId")
.HasColumnType("uuid");
b.Property("SpawnX")
.HasColumnType("smallint");
b.Property("SpawnY")
.HasColumnType("smallint");
b.HasKey("Id");
b.HasIndex("CastleSiegeConfigurationId");
b.HasIndex("MonsterDefinitionId", "InstanceId");
b.ToTable("CastleSiegeNpcDefinition", "config");
});
modelBuilder.Entity("MUnique.OpenMU.Persistence.EntityFramework.Model.CastleSiegeNpcState", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("CastleSiegeDataId")
.HasColumnType("uuid");
b.Property("CurrentHp")
.HasColumnType("integer");
b.Property("DefenseLevel")
.HasColumnType("smallint");
b.Property("InstanceId")
.HasColumnType("smallint");
b.Property("LifeLevel")
.HasColumnType("smallint");
b.Property("MonsterNumber")
.HasColumnType("smallint");
b.Property("RegenLevel")
.HasColumnType("smallint");
b.HasKey("Id");
b.HasIndex("CastleSiegeDataId");
b.HasIndex("MonsterNumber", "InstanceId")
.IsUnique();
b.ToTable("CastleSiegeNpcState", "data");
});
modelBuilder.Entity("MUnique.OpenMU.Persistence.EntityFramework.Model.CastleSiegeStateScheduleEntry", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("CastleSiegeConfigurationId")
.HasColumnType("uuid");
b.Property("DayOfWeek")
.HasColumnType("integer");
b.Property("Hour")
.HasColumnType("smallint");
b.Property("Minute")
.HasColumnType("smallint");
b.Property("State")
.HasColumnType("smallint");
b.HasKey("Id");
b.HasIndex("CastleSiegeConfigurationId");
b.ToTable("CastleSiegeStateScheduleEntry", "config");
});
modelBuilder.Entity("MUnique.OpenMU.Persistence.EntityFramework.Model.CastleSiegeUpgradeDefinition", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("CastleSiegeConfigurationId")
.HasColumnType("uuid");
b.Property("CastleSiegeConfigurationId1")
.HasColumnType("uuid");
b.Property("CastleSiegeConfigurationId2")
.HasColumnType("uuid");
b.Property("CastleSiegeConfigurationId3")
.HasColumnType("uuid");
b.Property("CastleSiegeConfigurationId4")
.HasColumnType("uuid");
b.Property("Level")
.HasColumnType("smallint");
b.Property("RequiredJewelOfGuardianCount")
.HasColumnType("integer");
b.Property("RequiredZen")
.HasColumnType("integer");
b.Property("Value")
.HasColumnType("integer");
b.HasKey("Id");
b.HasIndex("CastleSiegeConfigurationId");
b.HasIndex("CastleSiegeConfigurationId1");
b.HasIndex("CastleSiegeConfigurationId2");
b.HasIndex("CastleSiegeConfigurationId3");
b.HasIndex("CastleSiegeConfigurationId4");
b.ToTable("CastleSiegeUpgradeDefinition", "config");
});
modelBuilder.Entity("MUnique.OpenMU.Persistence.EntityFramework.Model.CastleSiegeZoneDefinition", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("CastleSiegeConfigurationId")
.HasColumnType("uuid");
b.Property("CastleSiegeConfigurationId1")
.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("CastleSiegeConfigurationId");
b.HasIndex("CastleSiegeConfigurationId1");
b.ToTable("CastleSiegeZoneDefinition", "config");
});
modelBuilder.Entity("MUnique.OpenMU.Persistence.EntityFramework.Model.Character", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("AccountId")
.HasColumnType("uuid");
b.Property("CharacterClassId")
.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("IsStoreOpened")
.HasColumnType("boolean");
b.Property("KeyConfiguration")
.HasColumnType("bytea");
b.Property("LevelUpPoints")
.HasColumnType("integer");
b.Property("MasterExperience")
.HasColumnType("bigint");
b.Property("MasterLevelUpPoints")
.HasColumnType("integer");
b.Property("MuHelperConfiguration")
.HasColumnType("bytea");
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("StoreName")
.HasColumnType("text");
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.ConfigurationUpdate", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("CreatedAt")
.HasColumnType("timestamp with time zone");
b.Property("Description")
.IsRequired()
.HasColumnType("text");
b.Property("InstalledAt")
.HasColumnType("timestamp with time zone");
b.Property("Name")
.IsRequired()
.HasColumnType("text");
b.Property("Version")
.HasColumnType("integer");
b.HasKey("Id");
b.ToTable("ConfigurationUpdate", "config");
});
modelBuilder.Entity("MUnique.OpenMU.Persistence.EntityFramework.Model.ConfigurationUpdateState", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("CurrentInstalledVersion")
.HasColumnType("integer");
b.Property("InitializationKey")
.HasColumnType("text");
b.HasKey("Id");
b.ToTable("ConfigurationUpdateState", "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("GameConfigurationId")
.HasColumnType("uuid");
b.Property("Value")
.HasColumnType("real");
b.HasKey("Id");
b.HasIndex("CharacterClassId");
b.HasIndex("DefinitionId");
b.HasIndex("GameConfigurationId");
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.DuelArea", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("DuelConfigurationId")
.HasColumnType("uuid");
b.Property("FirstPlayerGateId")
.HasColumnType("uuid");
b.Property("Index")
.HasColumnType("smallint");
b.Property("SecondPlayerGateId")
.HasColumnType("uuid");
b.Property