diff --git a/Pf2eModel/Migrations/20250601111002_1.Designer.cs b/Pf2eModel/Migrations/20250601182634_1.Designer.cs
similarity index 91%
rename from Pf2eModel/Migrations/20250601111002_1.Designer.cs
rename to Pf2eModel/Migrations/20250601182634_1.Designer.cs
index c4607c3..50fc6eb 100644
--- a/Pf2eModel/Migrations/20250601111002_1.Designer.cs
+++ b/Pf2eModel/Migrations/20250601182634_1.Designer.cs
@@ -13,7 +13,7 @@ using Pf2eModel.Model.Enum;
namespace Pf2eModel.Migrations
{
[DbContext(typeof(Pf2eDbContext))]
- [Migration("20250601111002_1")]
+ [Migration("20250601182634_1")]
partial class _1
{
///
@@ -36,7 +36,7 @@ namespace Pf2eModel.Migrations
NpgsqlModelBuilderExtensions.HasPostgresEnum(modelBuilder, "entity_rarity", new[] { "common", "rare", "uncommon", "unique" });
NpgsqlModelBuilderExtensions.HasPostgresEnum(modelBuilder, "entity_type", new[] { "action", "ancestry", "archetype", "background", "backpack", "campaign_feature", "class", "condition", "deity", "feat", "heritage", "language", "ritual", "rule", "spell", "subclass", "subclass_group", "trait", "unknown" });
NpgsqlModelBuilderExtensions.HasPostgresEnum(modelBuilder, "feat_category", new[] { "ancestry", "ancestry-feature", "archetype", "bonus", "calling", "campaign-feature", "class", "class-feature", "curse", "deityboon", "general", "pfsboon", "skill", "uncategorized" });
- NpgsqlModelBuilderExtensions.HasPostgresEnum(modelBuilder, "locale_type", new[] { "english", "hobby", "legacy", "legacy_english", "other", "russian" });
+ NpgsqlModelBuilderExtensions.HasPostgresEnum(modelBuilder, "locale_type", new[] { "english", "hobby", "other", "russian" });
NpgsqlModelBuilderExtensions.HasPostgresEnum(modelBuilder, "size_enum", new[] { "huge", "large", "medium", "small", "tiny" });
NpgsqlModelBuilderExtensions.HasPostgresEnum(modelBuilder, "source_category", new[] { "adventure-path", "adventures", "blog-posts", "comics", "lost-omens", "rulebook", "society" });
NpgsqlModelBuilderExtensions.HasPostgresEnum(modelBuilder, "spell_area_type", new[] { "burst", "circle", "cone", "cube", "cuboid", "cylinder", "emanation", "line", "other", "square", "varies" });
@@ -401,7 +401,8 @@ namespace Pf2eModel.Migrations
.HasMaxLength(255)
.HasColumnType("character varying(255)")
.HasColumnName("external_id")
- .HasColumnOrder(3);
+ .HasColumnOrder(3)
+ .HasComment("Идентификатор элемента в ссылке");
b.Property("Md5")
.IsRequired()
@@ -618,17 +619,20 @@ namespace Pf2eModel.Migrations
b.Property("AncestryId")
.HasColumnType("integer")
.HasColumnName("ancestry_id")
- .HasColumnOrder(2);
+ .HasColumnOrder(2)
+ .HasComment("Идентификатор родословной");
b.Property("Boost")
.HasColumnType("boolean")
.HasColumnName("boost")
- .HasColumnOrder(3);
+ .HasColumnOrder(3)
+ .HasComment("Флаг повышения/снижения");
b.Property("Value")
.HasColumnType("attribute_values")
.HasColumnName("value")
- .HasColumnOrder(4);
+ .HasColumnOrder(4)
+ .HasComment("Значение атрибута");
b.HasKey("Id")
.HasName("pk_ancestry_boosts");
@@ -644,17 +648,20 @@ namespace Pf2eModel.Migrations
b.Property("AncestryId")
.HasColumnType("integer")
.HasColumnName("ancestry_id")
- .HasColumnOrder(1);
+ .HasColumnOrder(1)
+ .HasComment("Идентификатор родословной");
b.Property("ItemId")
.HasColumnType("integer")
.HasColumnName("item_id")
- .HasColumnOrder(2);
+ .HasColumnOrder(2)
+ .HasComment("Идентификатор связанной сущности");
b.Property("Level")
.HasColumnType("integer")
.HasColumnName("level")
- .HasColumnOrder(3);
+ .HasColumnOrder(3)
+ .HasComment("Уровень сущности в родословной");
b.HasKey("AncestryId", "ItemId")
.HasName("pk_ancestry_items");
@@ -670,17 +677,20 @@ namespace Pf2eModel.Migrations
b.Property("AncestryId")
.HasColumnType("integer")
.HasColumnName("ancestry_id")
- .HasColumnOrder(1);
+ .HasColumnOrder(1)
+ .HasComment("Идентификатор родословной");
b.Property("LanguageId")
.HasColumnType("integer")
.HasColumnName("language_id")
- .HasColumnOrder(2);
+ .HasColumnOrder(2)
+ .HasComment("Идентификатор связанного языка");
b.Property("IsAdditional")
.HasColumnType("boolean")
.HasColumnName("is_additional")
- .HasColumnOrder(3);
+ .HasColumnOrder(3)
+ .HasComment("Флаг дополнительного");
b.HasKey("AncestryId", "LanguageId")
.HasName("pk_ancestry_languages");
@@ -731,11 +741,13 @@ namespace Pf2eModel.Migrations
{
b.Property("ArchetypeId")
.HasColumnType("integer")
- .HasColumnName("archetype_id");
+ .HasColumnName("archetype_id")
+ .HasComment("Идентификатор архетипа");
b.Property("FeatId")
.HasColumnType("integer")
- .HasColumnName("feat_id");
+ .HasColumnName("feat_id")
+ .HasComment("Идентификатор черты");
b.HasKey("ArchetypeId", "FeatId")
.HasName("pk_archetype_feats");
@@ -766,19 +778,22 @@ namespace Pf2eModel.Migrations
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasColumnName("id")
- .HasColumnOrder(1);
+ .HasColumnOrder(1)
+ .HasComment("Идентификатор");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
b.Property("Attribute")
.HasColumnType("attribute_values")
.HasColumnName("attribute")
- .HasColumnOrder(3);
+ .HasColumnOrder(3)
+ .HasComment("Атрибут");
b.Property("BackgroundId")
.HasColumnType("integer")
.HasColumnName("background_id")
- .HasColumnOrder(2);
+ .HasColumnOrder(2)
+ .HasComment("Идентификатор предыстории");
b.HasKey("Id")
.HasName("pk_background_boosts");
@@ -794,12 +809,14 @@ namespace Pf2eModel.Migrations
b.Property("BackgroundId")
.HasColumnType("integer")
.HasColumnName("background_id")
- .HasColumnOrder(1);
+ .HasColumnOrder(1)
+ .HasComment("Идентификатор");
b.Property("EntityId")
.HasColumnType("integer")
.HasColumnName("entity_id")
- .HasColumnOrder(2);
+ .HasColumnOrder(2)
+ .HasComment("Идентификатор сущности");
b.Property("Level")
.HasColumnType("integer")
@@ -820,22 +837,26 @@ namespace Pf2eModel.Migrations
b.Property("Id")
.HasColumnType("integer")
.HasColumnName("id")
- .HasColumnOrder(1);
+ .HasColumnOrder(1)
+ .HasComment("Идентификатор");
b.Property("BackgroundId")
.HasColumnType("integer")
.HasColumnName("background_id")
- .HasColumnOrder(2);
+ .HasColumnOrder(2)
+ .HasComment("Идентификатор предыстории");
b.Property("Rank")
.HasColumnType("training_rank")
.HasColumnName("rank")
- .HasColumnOrder(4);
+ .HasColumnOrder(4)
+ .HasComment("Ранг тренировки");
b.Property("TrainingId")
.HasColumnType("integer")
.HasColumnName("training_id")
- .HasColumnOrder(3);
+ .HasColumnOrder(3)
+ .HasComment("Идентификатор тренируемого навыка");
b.HasKey("Id")
.HasName("pk_background_skills");
@@ -887,25 +908,28 @@ namespace Pf2eModel.Migrations
b.ToTable("classes", (string)null);
});
- modelBuilder.Entity("Pf2eModel.Model.Structure.ClassRelation.ClassKeyAbility", b =>
+ modelBuilder.Entity("Pf2eModel.Model.Structure.ClassRelation.ClassKeyAttribute", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasColumnName("id")
- .HasColumnOrder(1);
+ .HasColumnOrder(1)
+ .HasComment("Идентификатор");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
b.Property("ClassId")
.HasColumnType("integer")
.HasColumnName("class_id")
- .HasColumnOrder(2);
+ .HasColumnOrder(2)
+ .HasComment("Идентификатор класса");
b.Property("Value")
.HasColumnType("attribute_values")
.HasColumnName("value")
- .HasColumnOrder(3);
+ .HasColumnOrder(3)
+ .HasComment("Атрибут");
b.HasKey("Id")
.HasName("pk_class_key_abilities");
@@ -922,29 +946,34 @@ namespace Pf2eModel.Migrations
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasColumnName("id")
- .HasColumnOrder(1);
+ .HasColumnOrder(1)
+ .HasComment("Идентификатор");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
b.Property("ClassId")
.HasColumnType("integer")
.HasColumnName("class_id")
- .HasColumnOrder(2);
+ .HasColumnOrder(2)
+ .HasComment("Идентификатор класса");
b.Property("EntityId")
.HasColumnType("integer")
.HasColumnName("entity_id")
- .HasColumnOrder(5);
+ .HasColumnOrder(5)
+ .HasComment("Идентификатор сущности");
b.Property("Level")
.HasColumnType("integer")
.HasColumnName("level")
- .HasColumnOrder(31);
+ .HasColumnOrder(3)
+ .HasComment("Уровень класса");
b.Property("Type")
.HasColumnType("class_progression_type")
.HasColumnName("type")
- .HasColumnOrder(4);
+ .HasColumnOrder(4)
+ .HasComment("Тип элемента прогрессии класса");
b.HasKey("Id")
.HasName("pk_class_progressions");
@@ -964,24 +993,28 @@ namespace Pf2eModel.Migrations
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasColumnName("id")
- .HasColumnOrder(1);
+ .HasColumnOrder(1)
+ .HasComment("Идентификатор");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
b.Property("ClassId")
.HasColumnType("integer")
.HasColumnName("class_id")
- .HasColumnOrder(2);
+ .HasColumnOrder(2)
+ .HasComment("Идентификатор класса");
b.Property("Rank")
.HasColumnType("training_rank")
.HasColumnName("rank")
- .HasColumnOrder(4);
+ .HasColumnOrder(4)
+ .HasComment("Ранг тренировки");
b.Property("TrainingId")
.HasColumnType("integer")
.HasColumnName("training_id")
- .HasColumnOrder(3);
+ .HasColumnOrder(3)
+ .HasComment("Идентификатор тренируемого навыка");
b.HasKey("Id")
.HasName("pk_class_trainings");
@@ -1020,24 +1053,28 @@ namespace Pf2eModel.Migrations
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasColumnName("id")
- .HasColumnOrder(1);
+ .HasColumnOrder(1)
+ .HasComment("Идентификатор связи");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
b.Property("Rank")
.HasColumnType("training_rank")
.HasColumnName("rank")
- .HasColumnOrder(4);
+ .HasColumnOrder(4)
+ .HasComment("Ранг тренировки");
b.Property("SubclassId")
.HasColumnType("integer")
.HasColumnName("subclass_id")
- .HasColumnOrder(2);
+ .HasColumnOrder(2)
+ .HasComment("Идентификатор подкласса");
b.Property("TrainingId")
.HasColumnType("integer")
.HasColumnName("training_id")
- .HasColumnOrder(3);
+ .HasColumnOrder(3)
+ .HasComment("Идентификатор тренировки");
b.HasKey("Id")
.HasName("pk_subclass_trainings");
@@ -1120,12 +1157,14 @@ namespace Pf2eModel.Migrations
b.Property("DeityId")
.HasColumnType("integer")
.HasColumnName("deity_id")
- .HasColumnOrder(1);
+ .HasColumnOrder(1)
+ .HasComment("Идентификатор божества");
b.Property("Attribute")
.HasColumnType("attribute_values")
.HasColumnName("attribute")
- .HasColumnOrder(2);
+ .HasColumnOrder(2)
+ .HasComment("Атрибут божества");
b.HasKey("DeityId", "Attribute")
.HasName("pk_deity_attributes");
@@ -1139,19 +1178,22 @@ namespace Pf2eModel.Migrations
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasColumnName("id")
- .HasColumnOrder(1);
+ .HasColumnOrder(1)
+ .HasComment("Идентификатор");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
b.Property("DeityId")
.HasColumnType("integer")
.HasColumnName("deity_id")
- .HasColumnOrder(2);
+ .HasColumnOrder(2)
+ .HasComment("Идентификатор божества");
b.Property("IsPrimary")
.HasColumnType("boolean")
.HasColumnName("is_primary")
- .HasColumnOrder(3);
+ .HasColumnOrder(3)
+ .HasComment("Флаг основного домена");
b.Property("Value")
.IsRequired()
@@ -1175,24 +1217,28 @@ namespace Pf2eModel.Migrations
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasColumnName("id")
- .HasColumnOrder(1);
+ .HasColumnOrder(1)
+ .HasComment("Идентификатор");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
b.Property("DeityId")
.HasColumnType("integer")
.HasColumnName("deity_id")
- .HasColumnOrder(2);
+ .HasColumnOrder(2)
+ .HasComment("Идентификатор божества");
b.Property("Level")
.HasColumnType("integer")
.HasColumnName("level")
- .HasColumnOrder(3);
+ .HasColumnOrder(3)
+ .HasComment("Уровень заклинания");
b.Property("SpellId")
.HasColumnType("integer")
.HasColumnName("spell_id")
- .HasColumnOrder(4);
+ .HasColumnOrder(4)
+ .HasComment("Идентификатор заклинания");
b.HasKey("Id")
.HasName("pk_deity_spells");
@@ -1212,21 +1258,24 @@ namespace Pf2eModel.Migrations
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasColumnName("id")
- .HasColumnOrder(1);
+ .HasColumnOrder(1)
+ .HasComment("Идентификатор");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
b.Property("DeityId")
.HasColumnType("integer")
.HasColumnName("deity_id")
- .HasColumnOrder(2);
+ .HasColumnOrder(2)
+ .HasComment("Идентификатор божества");
b.Property("Weapon")
.IsRequired()
.HasMaxLength(255)
.HasColumnType("character varying(255)")
.HasColumnName("weapon")
- .HasColumnOrder(3);
+ .HasColumnOrder(3)
+ .HasComment("Название оружия");
b.HasKey("Id")
.HasName("pk_deity_weapons");
@@ -1281,21 +1330,24 @@ namespace Pf2eModel.Migrations
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasColumnName("id")
- .HasColumnOrder(1);
+ .HasColumnOrder(1)
+ .HasComment("Идентификатор");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
b.Property("FeatId")
.HasColumnType("integer")
.HasColumnName("feat_id")
- .HasColumnOrder(2);
+ .HasColumnOrder(2)
+ .HasComment("Идентификатор черты");
b.Property("Value")
.IsRequired()
.HasMaxLength(255)
.HasColumnType("character varying(255)")
.HasColumnName("value")
- .HasColumnOrder(3);
+ .HasColumnOrder(3)
+ .HasComment("Предварительное требование");
b.HasKey("Id")
.HasName("pk_feat_prerequisites");
@@ -1454,18 +1506,21 @@ namespace Pf2eModel.Migrations
b.Property("RitualId")
.HasColumnType("integer")
.HasColumnName("ritual_id")
- .HasColumnOrder(1);
+ .HasColumnOrder(1)
+ .HasComment("Идентификатор ритуала");
b.Property("Details")
.HasMaxLength(255)
.HasColumnType("jsonb")
.HasColumnName("details")
- .HasColumnOrder(2);
+ .HasColumnOrder(2)
+ .HasComment("Описание области действия ритуала");
b.Property("Type")
.HasColumnType("spell_area_type")
.HasColumnName("type")
- .HasColumnOrder(3);
+ .HasColumnOrder(3)
+ .HasComment("Тип области действия ритуала");
b.HasKey("RitualId")
.HasName("pk_ritual_areas");
@@ -1479,34 +1534,40 @@ namespace Pf2eModel.Migrations
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasColumnName("id")
- .HasColumnOrder(1);
+ .HasColumnOrder(1)
+ .HasComment("Идентификатор");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
b.Property("IsPrimary")
.HasColumnType("boolean")
.HasColumnName("is_primary")
- .HasColumnOrder(6);
+ .HasColumnOrder(6)
+ .HasComment("Флаг основной проверки");
b.Property("Rank")
.HasColumnType("training_rank")
.HasColumnName("rank")
- .HasColumnOrder(5);
+ .HasColumnOrder(5)
+ .HasComment("Ранг тренировки");
b.Property("RitualId")
.HasColumnType("integer")
.HasColumnName("ritual_id")
- .HasColumnOrder(2);
+ .HasColumnOrder(2)
+ .HasComment("Идентификатор ритуала");
b.Property("TrainingId")
.HasColumnType("integer")
.HasColumnName("training_id")
- .HasColumnOrder(3);
+ .HasColumnOrder(3)
+ .HasComment("Идентификатор тренировки");
b.Property("TrainingString")
.HasColumnType("jsonb")
.HasColumnName("training_string")
- .HasColumnOrder(4);
+ .HasColumnOrder(4)
+ .HasComment("Дополнение к проверке");
b.HasKey("Id")
.HasName("pk_ritual_checks");
@@ -1642,7 +1703,8 @@ namespace Pf2eModel.Migrations
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasColumnName("id")
- .HasColumnOrder(1);
+ .HasColumnOrder(1)
+ .HasComment("Идентификатор");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
@@ -1650,17 +1712,20 @@ namespace Pf2eModel.Migrations
.HasMaxLength(255)
.HasColumnType("jsonb")
.HasColumnName("details")
- .HasColumnOrder(3);
+ .HasColumnOrder(3)
+ .HasComment("Описание области заклинания");
b.Property("SpellId")
.HasColumnType("integer")
.HasColumnName("spell_id")
- .HasColumnOrder(2);
+ .HasColumnOrder(2)
+ .HasComment("Идентификатор заклинания");
b.Property("Type")
.HasColumnType("spell_area_type")
.HasColumnName("type")
- .HasColumnOrder(4);
+ .HasColumnOrder(4)
+ .HasComment("Тип области заклинания");
b.HasKey("Id")
.HasName("pk_spell_areas");
@@ -1677,56 +1742,65 @@ namespace Pf2eModel.Migrations
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasColumnName("id")
- .HasColumnOrder(1);
+ .HasColumnOrder(1)
+ .HasComment("Идентификатор урона заклинания");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
b.Property("ApplyMod")
.HasColumnType("boolean")
.HasColumnName("apply_mod")
- .HasColumnOrder(4);
+ .HasColumnOrder(4)
+ .HasComment("Применяется модификатор?");
b.Property("Category")
.HasColumnType("spell_damage_category")
.HasColumnName("category")
- .HasColumnOrder(5);
+ .HasColumnOrder(5)
+ .HasComment("Категория урона заклинания");
b.Property("Formula")
.IsRequired()
.HasMaxLength(255)
.HasColumnType("character varying(255)")
.HasColumnName("formula")
- .HasColumnOrder(6);
+ .HasColumnOrder(6)
+ .HasComment("Формула урона заклинания");
b.Property("Key")
.IsRequired()
.HasMaxLength(255)
.HasColumnType("character varying(255)")
.HasColumnName("key")
- .HasColumnOrder(3);
+ .HasColumnOrder(3)
+ .HasComment("Уровень заклинания");
b.Property("Kinds")
.HasColumnType("spell_damage_kinds")
.HasColumnName("kinds")
- .HasColumnOrder(7);
+ .HasColumnOrder(7)
+ .HasComment("Тип урона заклинания");
b.Property("Materials")
.HasMaxLength(255)
.HasColumnType("character varying(255)")
.HasColumnName("materials")
- .HasColumnOrder(8);
+ .HasColumnOrder(8)
+ .HasComment("Материалы для заклинания");
b.Property("SpellId")
.HasColumnType("integer")
.HasColumnName("spell_id")
- .HasColumnOrder(2);
+ .HasColumnOrder(2)
+ .HasComment("Идентификатор заклинания");
b.Property("Type")
.IsRequired()
.HasMaxLength(255)
.HasColumnType("character varying(255)")
.HasColumnName("type")
- .HasColumnOrder(9);
+ .HasColumnOrder(9)
+ .HasComment("Тип урона заклинания");
b.HasKey("Id")
.HasName("pk_spell_damages");
@@ -1743,14 +1817,16 @@ namespace Pf2eModel.Migrations
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasColumnName("id")
- .HasColumnOrder(1);
+ .HasColumnOrder(1)
+ .HasComment("Идентификатор");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
b.Property("IsBasic")
.HasColumnType("boolean")
.HasColumnName("is_basic")
- .HasColumnOrder(4);
+ .HasColumnOrder(4)
+ .HasComment("Базовый спасборосок?");
b.Property("IsPassive")
.HasColumnType("boolean")
@@ -1760,7 +1836,8 @@ namespace Pf2eModel.Migrations
b.Property("SpellId")
.HasColumnType("integer")
.HasColumnName("spell_id")
- .HasColumnOrder(2);
+ .HasColumnOrder(2)
+ .HasComment("Идентификатор заклинания");
b.Property("Statistic")
.IsRequired()
@@ -2188,7 +2265,7 @@ namespace Pf2eModel.Migrations
b.Navigation("Entity");
});
- modelBuilder.Entity("Pf2eModel.Model.Structure.ClassRelation.ClassKeyAbility", b =>
+ modelBuilder.Entity("Pf2eModel.Model.Structure.ClassRelation.ClassKeyAttribute", b =>
{
b.HasOne("Pf2eModel.Model.Structure.Class", "Class")
.WithMany("ClassKeyAbilities")
diff --git a/Pf2eModel/Migrations/20250601111002_1.cs b/Pf2eModel/Migrations/20250601182634_1.cs
similarity index 92%
rename from Pf2eModel/Migrations/20250601111002_1.cs
rename to Pf2eModel/Migrations/20250601182634_1.cs
index 2dc5d93..3fec90b 100644
--- a/Pf2eModel/Migrations/20250601111002_1.cs
+++ b/Pf2eModel/Migrations/20250601182634_1.cs
@@ -26,7 +26,7 @@ namespace Pf2eModel.Migrations
.Annotation("Npgsql:Enum:entity_rarity", "common,rare,uncommon,unique")
.Annotation("Npgsql:Enum:entity_type", "action,ancestry,archetype,background,backpack,campaign_feature,class,condition,deity,feat,heritage,language,ritual,rule,spell,subclass,subclass_group,trait,unknown")
.Annotation("Npgsql:Enum:feat_category", "ancestry,ancestry-feature,archetype,bonus,calling,campaign-feature,class,class-feature,curse,deityboon,general,pfsboon,skill,uncategorized")
- .Annotation("Npgsql:Enum:locale_type", "english,hobby,legacy,legacy_english,other,russian")
+ .Annotation("Npgsql:Enum:locale_type", "english,hobby,other,russian")
.Annotation("Npgsql:Enum:size_enum", "huge,large,medium,small,tiny")
.Annotation("Npgsql:Enum:source_category", "adventure-path,adventures,blog-posts,comics,lost-omens,rulebook,society")
.Annotation("Npgsql:Enum:spell_area_type", "burst,circle,cone,cube,cuboid,cylinder,emanation,line,other,square,varies")
@@ -440,7 +440,7 @@ namespace Pf2eModel.Migrations
{
entity_id = table.Column(type: "integer", nullable: false, comment: "Идентификатор сущности"),
target_id = table.Column(type: "integer", nullable: false, comment: "Идентификатор цели"),
- external_id = table.Column(type: "character varying(255)", maxLength: 255, nullable: true),
+ external_id = table.Column(type: "character varying(255)", maxLength: 255, nullable: true, comment: "Идентификатор элемента в ссылке"),
suffix = table.Column(type: "character varying(255)", maxLength: 255, nullable: false, comment: "Часть URL до объекта. Для источников Foundry - полный UUID объекта"),
md5 = table.Column(type: "character varying(32)", maxLength: 32, nullable: false, comment: "Контрольная сумма объекта")
},
@@ -539,9 +539,9 @@ namespace Pf2eModel.Migrations
{
id = table.Column(type: "integer", nullable: false)
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
- ancestry_id = table.Column(type: "integer", nullable: false),
- boost = table.Column(type: "boolean", nullable: false),
- value = table.Column(type: "attribute_values", nullable: false)
+ ancestry_id = table.Column(type: "integer", nullable: false, comment: "Идентификатор родословной"),
+ boost = table.Column(type: "boolean", nullable: false, comment: "Флаг повышения/снижения"),
+ value = table.Column(type: "attribute_values", nullable: false, comment: "Значение атрибута")
},
constraints: table =>
{
@@ -558,9 +558,9 @@ namespace Pf2eModel.Migrations
name: "ancestry_items",
columns: table => new
{
- ancestry_id = table.Column(type: "integer", nullable: false),
- item_id = table.Column(type: "integer", nullable: false),
- level = table.Column(type: "integer", nullable: false)
+ ancestry_id = table.Column(type: "integer", nullable: false, comment: "Идентификатор родословной"),
+ item_id = table.Column(type: "integer", nullable: false, comment: "Идентификатор связанной сущности"),
+ level = table.Column(type: "integer", nullable: false, comment: "Уровень сущности в родословной")
},
constraints: table =>
{
@@ -607,10 +607,10 @@ namespace Pf2eModel.Migrations
name: "background_boosts",
columns: table => new
{
- id = table.Column(type: "integer", nullable: false)
+ id = table.Column(type: "integer", nullable: false, comment: "Идентификатор")
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
- background_id = table.Column(type: "integer", nullable: false),
- attribute = table.Column(type: "attribute_values", nullable: false)
+ background_id = table.Column(type: "integer", nullable: false, comment: "Идентификатор предыстории"),
+ attribute = table.Column(type: "attribute_values", nullable: false, comment: "Атрибут")
},
constraints: table =>
{
@@ -627,8 +627,8 @@ namespace Pf2eModel.Migrations
name: "background_items",
columns: table => new
{
- background_id = table.Column(type: "integer", nullable: false),
- entity_id = table.Column(type: "integer", nullable: false),
+ background_id = table.Column(type: "integer", nullable: false, comment: "Идентификатор"),
+ entity_id = table.Column(type: "integer", nullable: false, comment: "Идентификатор сущности"),
level = table.Column(type: "integer", nullable: true)
},
constraints: table =>
@@ -652,10 +652,10 @@ namespace Pf2eModel.Migrations
name: "background_skills",
columns: table => new
{
- id = table.Column(type: "integer", nullable: false),
- background_id = table.Column(type: "integer", nullable: false),
- training_id = table.Column(type: "integer", nullable: false),
- rank = table.Column(type: "training_rank", nullable: false)
+ id = table.Column(type: "integer", nullable: false, comment: "Идентификатор"),
+ background_id = table.Column(type: "integer", nullable: false, comment: "Идентификатор предыстории"),
+ training_id = table.Column(type: "integer", nullable: false, comment: "Идентификатор тренируемого навыка"),
+ rank = table.Column(type: "training_rank", nullable: false, comment: "Ранг тренировки")
},
constraints: table =>
{
@@ -678,10 +678,10 @@ namespace Pf2eModel.Migrations
name: "class_key_abilities",
columns: table => new
{
- id = table.Column(type: "integer", nullable: false)
+ id = table.Column(type: "integer", nullable: false, comment: "Идентификатор")
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
- class_id = table.Column(type: "integer", nullable: false),
- value = table.Column(type: "attribute_values", nullable: false)
+ class_id = table.Column(type: "integer", nullable: false, comment: "Идентификатор класса"),
+ value = table.Column(type: "attribute_values", nullable: false, comment: "Атрибут")
},
constraints: table =>
{
@@ -698,12 +698,12 @@ namespace Pf2eModel.Migrations
name: "class_progressions",
columns: table => new
{
- id = table.Column(type: "integer", nullable: false)
+ id = table.Column(type: "integer", nullable: false, comment: "Идентификатор")
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
- class_id = table.Column(type: "integer", nullable: false),
- type = table.Column(type: "class_progression_type", nullable: false),
- entity_id = table.Column(type: "integer", nullable: true),
- level = table.Column(type: "integer", nullable: false)
+ class_id = table.Column(type: "integer", nullable: false, comment: "Идентификатор класса"),
+ level = table.Column(type: "integer", nullable: false, comment: "Уровень класса"),
+ type = table.Column(type: "class_progression_type", nullable: false, comment: "Тип элемента прогрессии класса"),
+ entity_id = table.Column(type: "integer", nullable: true, comment: "Идентификатор сущности")
},
constraints: table =>
{
@@ -726,11 +726,11 @@ namespace Pf2eModel.Migrations
name: "class_trainings",
columns: table => new
{
- id = table.Column(type: "integer", nullable: false)
+ id = table.Column(type: "integer", nullable: false, comment: "Идентификатор")
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
- class_id = table.Column(type: "integer", nullable: false),
- training_id = table.Column(type: "integer", nullable: true),
- rank = table.Column(type: "training_rank", nullable: false)
+ class_id = table.Column(type: "integer", nullable: false, comment: "Идентификатор класса"),
+ training_id = table.Column(type: "integer", nullable: true, comment: "Идентификатор тренируемого навыка"),
+ rank = table.Column(type: "training_rank", nullable: false, comment: "Ранг тренировки")
},
constraints: table =>
{
@@ -777,8 +777,8 @@ namespace Pf2eModel.Migrations
name: "deity_attributes",
columns: table => new
{
- deity_id = table.Column(type: "integer", nullable: false),
- attribute = table.Column(type: "attribute_values", nullable: false)
+ deity_id = table.Column(type: "integer", nullable: false, comment: "Идентификатор божества"),
+ attribute = table.Column(type: "attribute_values", nullable: false, comment: "Атрибут божества")
},
constraints: table =>
{
@@ -795,10 +795,10 @@ namespace Pf2eModel.Migrations
name: "deity_domains",
columns: table => new
{
- id = table.Column(type: "integer", nullable: false)
+ id = table.Column(type: "integer", nullable: false, comment: "Идентификатор")
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
- deity_id = table.Column(type: "integer", nullable: false),
- is_primary = table.Column(type: "boolean", nullable: false),
+ deity_id = table.Column(type: "integer", nullable: false, comment: "Идентификатор божества"),
+ is_primary = table.Column(type: "boolean", nullable: false, comment: "Флаг основного домена"),
value = table.Column(type: "character varying(255)", maxLength: 255, nullable: false)
},
constraints: table =>
@@ -840,10 +840,10 @@ namespace Pf2eModel.Migrations
name: "deity_weapons",
columns: table => new
{
- id = table.Column(type: "integer", nullable: false)
+ id = table.Column(type: "integer", nullable: false, comment: "Идентификатор")
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
- deity_id = table.Column(type: "integer", nullable: false),
- weapon = table.Column(type: "character varying(255)", maxLength: 255, nullable: false)
+ deity_id = table.Column(type: "integer", nullable: false, comment: "Идентификатор божества"),
+ weapon = table.Column(type: "character varying(255)", maxLength: 255, nullable: false, comment: "Название оружия")
},
constraints: table =>
{
@@ -886,10 +886,10 @@ namespace Pf2eModel.Migrations
name: "feat_prerequisites",
columns: table => new
{
- id = table.Column(type: "integer", nullable: false)
+ id = table.Column(type: "integer", nullable: false, comment: "Идентификатор")
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
- feat_id = table.Column(type: "integer", nullable: false),
- value = table.Column(type: "character varying(255)", maxLength: 255, nullable: false)
+ feat_id = table.Column(type: "integer", nullable: false, comment: "Идентификатор черты"),
+ value = table.Column(type: "character varying(255)", maxLength: 255, nullable: false, comment: "Предварительное требование")
},
constraints: table =>
{
@@ -906,9 +906,9 @@ namespace Pf2eModel.Migrations
name: "ancestry_languages",
columns: table => new
{
- ancestry_id = table.Column(type: "integer", nullable: false),
- language_id = table.Column(type: "integer", nullable: false),
- is_additional = table.Column(type: "boolean", nullable: false)
+ ancestry_id = table.Column(type: "integer", nullable: false, comment: "Идентификатор родословной"),
+ language_id = table.Column(type: "integer", nullable: false, comment: "Идентификатор связанного языка"),
+ is_additional = table.Column(type: "boolean", nullable: false, comment: "Флаг дополнительного")
},
constraints: table =>
{
@@ -931,9 +931,9 @@ namespace Pf2eModel.Migrations
name: "ritual_areas",
columns: table => new
{
- ritual_id = table.Column(type: "integer", nullable: false),
- details = table.Column(type: "jsonb", maxLength: 255, nullable: true),
- type = table.Column(type: "spell_area_type", nullable: false)
+ ritual_id = table.Column(type: "integer", nullable: false, comment: "Идентификатор ритуала"),
+ details = table.Column(type: "jsonb", maxLength: 255, nullable: true, comment: "Описание области действия ритуала"),
+ type = table.Column(type: "spell_area_type", nullable: false, comment: "Тип области действия ритуала")
},
constraints: table =>
{
@@ -950,13 +950,13 @@ namespace Pf2eModel.Migrations
name: "ritual_checks",
columns: table => new
{
- id = table.Column(type: "integer", nullable: false)
+ id = table.Column(type: "integer", nullable: false, comment: "Идентификатор")
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
- ritual_id = table.Column(type: "integer", nullable: false),
- training_id = table.Column(type: "integer", nullable: true),
- training_string = table.Column(type: "jsonb", nullable: true),
- rank = table.Column(type: "training_rank", nullable: false),
- is_primary = table.Column(type: "boolean", nullable: false)
+ ritual_id = table.Column(type: "integer", nullable: false, comment: "Идентификатор ритуала"),
+ training_id = table.Column(type: "integer", nullable: true, comment: "Идентификатор тренировки"),
+ training_string = table.Column(type: "jsonb", nullable: true, comment: "Дополнение к проверке"),
+ rank = table.Column(type: "training_rank", nullable: false, comment: "Ранг тренировки"),
+ is_primary = table.Column(type: "boolean", nullable: false, comment: "Флаг основной проверки")
},
constraints: table =>
{
@@ -979,11 +979,11 @@ namespace Pf2eModel.Migrations
name: "deity_spells",
columns: table => new
{
- id = table.Column(type: "integer", nullable: false)
+ id = table.Column(type: "integer", nullable: false, comment: "Идентификатор")
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
- deity_id = table.Column(type: "integer", nullable: false),
- level = table.Column(type: "integer", nullable: false),
- spell_id = table.Column(type: "integer", nullable: false)
+ deity_id = table.Column(type: "integer", nullable: false, comment: "Идентификатор божества"),
+ level = table.Column(type: "integer", nullable: false, comment: "Уровень заклинания"),
+ spell_id = table.Column(type: "integer", nullable: false, comment: "Идентификатор заклинания")
},
constraints: table =>
{
@@ -1006,11 +1006,11 @@ namespace Pf2eModel.Migrations
name: "spell_areas",
columns: table => new
{
- id = table.Column(type: "integer", nullable: false)
+ id = table.Column(type: "integer", nullable: false, comment: "Идентификатор")
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
- spell_id = table.Column(type: "integer", nullable: false),
- details = table.Column(type: "jsonb", maxLength: 255, nullable: true),
- type = table.Column(type: "spell_area_type", nullable: false)
+ spell_id = table.Column(type: "integer", nullable: false, comment: "Идентификатор заклинания"),
+ details = table.Column(type: "jsonb", maxLength: 255, nullable: true, comment: "Описание области заклинания"),
+ type = table.Column(type: "spell_area_type", nullable: false, comment: "Тип области заклинания")
},
constraints: table =>
{
@@ -1027,16 +1027,16 @@ namespace Pf2eModel.Migrations
name: "spell_damages",
columns: table => new
{
- id = table.Column(type: "integer", nullable: false)
+ id = table.Column(type: "integer", nullable: false, comment: "Идентификатор урона заклинания")
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
- spell_id = table.Column(type: "integer", nullable: false),
- key = table.Column(type: "character varying(255)", maxLength: 255, nullable: false),
- apply_mod = table.Column(type: "boolean", nullable: true),
- category = table.Column(type: "spell_damage_category", nullable: true),
- formula = table.Column(type: "character varying(255)", maxLength: 255, nullable: false),
- kinds = table.Column(type: "spell_damage_kinds", nullable: false),
- materials = table.Column(type: "character varying(255)", maxLength: 255, nullable: true),
- type = table.Column(type: "character varying(255)", maxLength: 255, nullable: false)
+ spell_id = table.Column(type: "integer", nullable: false, comment: "Идентификатор заклинания"),
+ key = table.Column(type: "character varying(255)", maxLength: 255, nullable: false, comment: "Уровень заклинания"),
+ apply_mod = table.Column(type: "boolean", nullable: true, comment: "Применяется модификатор?"),
+ category = table.Column(type: "spell_damage_category", nullable: true, comment: "Категория урона заклинания"),
+ formula = table.Column(type: "character varying(255)", maxLength: 255, nullable: false, comment: "Формула урона заклинания"),
+ kinds = table.Column(type: "spell_damage_kinds", nullable: false, comment: "Тип урона заклинания"),
+ materials = table.Column(type: "character varying(255)", maxLength: 255, nullable: true, comment: "Материалы для заклинания"),
+ type = table.Column(type: "character varying(255)", maxLength: 255, nullable: false, comment: "Тип урона заклинания")
},
constraints: table =>
{
@@ -1053,11 +1053,11 @@ namespace Pf2eModel.Migrations
name: "spell_defenses",
columns: table => new
{
- id = table.Column(type: "integer", nullable: false)
+ id = table.Column(type: "integer", nullable: false, comment: "Идентификатор")
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
- spell_id = table.Column(type: "integer", nullable: false),
+ spell_id = table.Column(type: "integer", nullable: false, comment: "Идентификатор заклинания"),
is_passive = table.Column(type: "boolean", nullable: false),
- is_basic = table.Column(type: "boolean", nullable: true),
+ is_basic = table.Column(type: "boolean", nullable: true, comment: "Базовый спасборосок?"),
statistic = table.Column(type: "character varying(255)", maxLength: 255, nullable: false)
},
constraints: table =>
@@ -1125,8 +1125,8 @@ namespace Pf2eModel.Migrations
name: "archetype_feats",
columns: table => new
{
- archetype_id = table.Column(type: "integer", nullable: false),
- feat_id = table.Column(type: "integer", nullable: false)
+ archetype_id = table.Column(type: "integer", nullable: false, comment: "Идентификатор архетипа"),
+ feat_id = table.Column(type: "integer", nullable: false, comment: "Идентификатор черты")
},
constraints: table =>
{
@@ -1173,11 +1173,11 @@ namespace Pf2eModel.Migrations
name: "subclass_trainings",
columns: table => new
{
- id = table.Column(type: "integer", nullable: false)
+ id = table.Column(type: "integer", nullable: false, comment: "Идентификатор связи")
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
- subclass_id = table.Column(type: "integer", nullable: false),
- training_id = table.Column(type: "integer", nullable: false),
- rank = table.Column(type: "training_rank", nullable: false)
+ subclass_id = table.Column(type: "integer", nullable: false, comment: "Идентификатор подкласса"),
+ training_id = table.Column(type: "integer", nullable: false, comment: "Идентификатор тренировки"),
+ rank = table.Column(type: "training_rank", nullable: false, comment: "Ранг тренировки")
},
constraints: table =>
{
diff --git a/Pf2eModel/Migrations/Pf2eDbContextModelSnapshot.cs b/Pf2eModel/Migrations/Pf2eDbContextModelSnapshot.cs
index 0f51b16..8b39b72 100644
--- a/Pf2eModel/Migrations/Pf2eDbContextModelSnapshot.cs
+++ b/Pf2eModel/Migrations/Pf2eDbContextModelSnapshot.cs
@@ -33,7 +33,7 @@ namespace Pf2eModel.Migrations
NpgsqlModelBuilderExtensions.HasPostgresEnum(modelBuilder, "entity_rarity", new[] { "common", "rare", "uncommon", "unique" });
NpgsqlModelBuilderExtensions.HasPostgresEnum(modelBuilder, "entity_type", new[] { "action", "ancestry", "archetype", "background", "backpack", "campaign_feature", "class", "condition", "deity", "feat", "heritage", "language", "ritual", "rule", "spell", "subclass", "subclass_group", "trait", "unknown" });
NpgsqlModelBuilderExtensions.HasPostgresEnum(modelBuilder, "feat_category", new[] { "ancestry", "ancestry-feature", "archetype", "bonus", "calling", "campaign-feature", "class", "class-feature", "curse", "deityboon", "general", "pfsboon", "skill", "uncategorized" });
- NpgsqlModelBuilderExtensions.HasPostgresEnum(modelBuilder, "locale_type", new[] { "english", "hobby", "legacy", "legacy_english", "other", "russian" });
+ NpgsqlModelBuilderExtensions.HasPostgresEnum(modelBuilder, "locale_type", new[] { "english", "hobby", "other", "russian" });
NpgsqlModelBuilderExtensions.HasPostgresEnum(modelBuilder, "size_enum", new[] { "huge", "large", "medium", "small", "tiny" });
NpgsqlModelBuilderExtensions.HasPostgresEnum(modelBuilder, "source_category", new[] { "adventure-path", "adventures", "blog-posts", "comics", "lost-omens", "rulebook", "society" });
NpgsqlModelBuilderExtensions.HasPostgresEnum(modelBuilder, "spell_area_type", new[] { "burst", "circle", "cone", "cube", "cuboid", "cylinder", "emanation", "line", "other", "square", "varies" });
@@ -398,7 +398,8 @@ namespace Pf2eModel.Migrations
.HasMaxLength(255)
.HasColumnType("character varying(255)")
.HasColumnName("external_id")
- .HasColumnOrder(3);
+ .HasColumnOrder(3)
+ .HasComment("Идентификатор элемента в ссылке");
b.Property("Md5")
.IsRequired()
@@ -615,17 +616,20 @@ namespace Pf2eModel.Migrations
b.Property("AncestryId")
.HasColumnType("integer")
.HasColumnName("ancestry_id")
- .HasColumnOrder(2);
+ .HasColumnOrder(2)
+ .HasComment("Идентификатор родословной");
b.Property("Boost")
.HasColumnType("boolean")
.HasColumnName("boost")
- .HasColumnOrder(3);
+ .HasColumnOrder(3)
+ .HasComment("Флаг повышения/снижения");
b.Property("Value")
.HasColumnType("attribute_values")
.HasColumnName("value")
- .HasColumnOrder(4);
+ .HasColumnOrder(4)
+ .HasComment("Значение атрибута");
b.HasKey("Id")
.HasName("pk_ancestry_boosts");
@@ -641,17 +645,20 @@ namespace Pf2eModel.Migrations
b.Property("AncestryId")
.HasColumnType("integer")
.HasColumnName("ancestry_id")
- .HasColumnOrder(1);
+ .HasColumnOrder(1)
+ .HasComment("Идентификатор родословной");
b.Property("ItemId")
.HasColumnType("integer")
.HasColumnName("item_id")
- .HasColumnOrder(2);
+ .HasColumnOrder(2)
+ .HasComment("Идентификатор связанной сущности");
b.Property("Level")
.HasColumnType("integer")
.HasColumnName("level")
- .HasColumnOrder(3);
+ .HasColumnOrder(3)
+ .HasComment("Уровень сущности в родословной");
b.HasKey("AncestryId", "ItemId")
.HasName("pk_ancestry_items");
@@ -667,17 +674,20 @@ namespace Pf2eModel.Migrations
b.Property("AncestryId")
.HasColumnType("integer")
.HasColumnName("ancestry_id")
- .HasColumnOrder(1);
+ .HasColumnOrder(1)
+ .HasComment("Идентификатор родословной");
b.Property("LanguageId")
.HasColumnType("integer")
.HasColumnName("language_id")
- .HasColumnOrder(2);
+ .HasColumnOrder(2)
+ .HasComment("Идентификатор связанного языка");
b.Property("IsAdditional")
.HasColumnType("boolean")
.HasColumnName("is_additional")
- .HasColumnOrder(3);
+ .HasColumnOrder(3)
+ .HasComment("Флаг дополнительного");
b.HasKey("AncestryId", "LanguageId")
.HasName("pk_ancestry_languages");
@@ -728,11 +738,13 @@ namespace Pf2eModel.Migrations
{
b.Property