Большая пачка обновлений
This commit is contained in:
@@ -22,7 +22,6 @@ namespace Pf2eModel.Migrations
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 63);
|
||||
|
||||
NpgsqlModelBuilderExtensions.HasPostgresEnum(modelBuilder, "action_category", new[] { "unknown", "offensive", "defensive", "interaction", "familiar", "army_tactic", "army_war_action", "kingdom_activity", "kingdom_feat", "kingdom_feature" });
|
||||
NpgsqlModelBuilderExtensions.HasPostgresEnum(modelBuilder, "action_type", new[] { "none", "1_action", "2_actions", "3_actions", "1-3_actions", "1-2_actions" });
|
||||
NpgsqlModelBuilderExtensions.HasPostgresEnum(modelBuilder, "alias_type", new[] { "legacy", "english", "legacy_english", "hobby", "other" });
|
||||
NpgsqlModelBuilderExtensions.HasPostgresEnum(modelBuilder, "ancestry_vision", new[] { "normal", "low-light-vision", "dark-vision" });
|
||||
NpgsqlModelBuilderExtensions.HasPostgresEnum(modelBuilder, "attribute_values", new[] { "free", "str", "dex", "con", "int", "wis", "cha" });
|
||||
@@ -32,7 +31,7 @@ namespace Pf2eModel.Migrations
|
||||
NpgsqlModelBuilderExtensions.HasPostgresEnum(modelBuilder, "deity_fonts", new[] { "none", "heal", "harm", "any" });
|
||||
NpgsqlModelBuilderExtensions.HasPostgresEnum(modelBuilder, "deity_sanctification", new[] { "holy", "unholy", "any" });
|
||||
NpgsqlModelBuilderExtensions.HasPostgresEnum(modelBuilder, "entity_rarity", new[] { "common", "uncommon", "rare", "unique" });
|
||||
NpgsqlModelBuilderExtensions.HasPostgresEnum(modelBuilder, "entity_type", new[] { "unknown", "trait", "action", "ancestry", "background", "backpack", "campaign_feature", "class", "condition", "deity", "feat", "heritage", "spell", "language" });
|
||||
NpgsqlModelBuilderExtensions.HasPostgresEnum(modelBuilder, "entity_type", new[] { "unknown", "trait", "action", "ancestry", "archetype", "background", "backpack", "campaign_feature", "class", "condition", "deity", "feat", "heritage", "spell", "language" });
|
||||
NpgsqlModelBuilderExtensions.HasPostgresEnum(modelBuilder, "feat_action_type", new[] { "passive", "action", "reaction", "free" });
|
||||
NpgsqlModelBuilderExtensions.HasPostgresEnum(modelBuilder, "feat_category", new[] { "ancestryfeature", "classfeature", "calling", "class", "skill", "general", "ancestry", "bonus", "deityboon", "curse", "pfsboon", "campaign_feature" });
|
||||
NpgsqlModelBuilderExtensions.HasPostgresEnum(modelBuilder, "size", new[] { "tiny", "small", "medium", "large" });
|
||||
@@ -432,13 +431,18 @@ namespace Pf2eModel.Migrations
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<string>("Key")
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasMaxLength(255)
|
||||
.HasColumnType("character varying(255)")
|
||||
.HasColumnName("key")
|
||||
.HasColumnName("name")
|
||||
.HasColumnOrder(2);
|
||||
|
||||
b.Property<int>("Type")
|
||||
.HasColumnType("integer")
|
||||
.HasColumnName("type")
|
||||
.HasColumnOrder(3);
|
||||
|
||||
b.HasKey("Id")
|
||||
.HasName("pk_trainings");
|
||||
|
||||
@@ -482,11 +486,6 @@ namespace Pf2eModel.Migrations
|
||||
.HasColumnName("max_actions")
|
||||
.HasColumnOrder(4);
|
||||
|
||||
b.Property<ActionType>("Type")
|
||||
.HasColumnType("action_type")
|
||||
.HasColumnName("type")
|
||||
.HasColumnOrder(2);
|
||||
|
||||
b.HasKey("Id")
|
||||
.HasName("pk_actions");
|
||||
|
||||
@@ -613,6 +612,38 @@ namespace Pf2eModel.Migrations
|
||||
b.ToTable("ancestry_languages", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Pf2eModel.Model.Structure.Archetype", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.HasColumnType("integer")
|
||||
.HasColumnName("id")
|
||||
.HasColumnOrder(1);
|
||||
|
||||
b.Property<int>("DedicationFeatId")
|
||||
.HasColumnType("integer")
|
||||
.HasColumnName("dedication_feat_id")
|
||||
.HasColumnOrder(3);
|
||||
|
||||
b.Property<string>("Extra")
|
||||
.HasColumnType("text")
|
||||
.HasColumnName("extra")
|
||||
.HasColumnOrder(4);
|
||||
|
||||
b.Property<int>("Level")
|
||||
.HasColumnType("integer")
|
||||
.HasColumnName("level")
|
||||
.HasColumnOrder(2);
|
||||
|
||||
b.HasKey("Id")
|
||||
.HasName("pk_archetype");
|
||||
|
||||
b.HasIndex("DedicationFeatId")
|
||||
.IsUnique()
|
||||
.HasDatabaseName("ix_archetype_dedication_feat_id");
|
||||
|
||||
b.ToTable("archetype", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Pf2eModel.Model.Structure.Background", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
@@ -629,10 +660,13 @@ namespace Pf2eModel.Migrations
|
||||
modelBuilder.Entity("Pf2eModel.Model.Structure.BackgroundRelation.BackgroundBoost", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer")
|
||||
.HasColumnName("id")
|
||||
.HasColumnOrder(1);
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<AttributeValues>("Attribute")
|
||||
.HasColumnType("attribute_values")
|
||||
.HasColumnName("attribute")
|
||||
@@ -722,7 +756,7 @@ namespace Pf2eModel.Migrations
|
||||
b.Property<int>("AdditionalTrainedSkills")
|
||||
.HasColumnType("integer")
|
||||
.HasColumnName("additional_trained_skills")
|
||||
.HasColumnOrder(6);
|
||||
.HasColumnOrder(7);
|
||||
|
||||
b.Property<int>("Hp")
|
||||
.HasColumnType("integer")
|
||||
@@ -739,6 +773,11 @@ namespace Pf2eModel.Migrations
|
||||
.HasColumnName("spellcasting")
|
||||
.HasColumnOrder(5);
|
||||
|
||||
b.Property<int>("Tradition")
|
||||
.HasColumnType("integer")
|
||||
.HasColumnName("tradition")
|
||||
.HasColumnOrder(6);
|
||||
|
||||
b.HasKey("Id")
|
||||
.HasName("pk_classes");
|
||||
|
||||
@@ -837,8 +876,8 @@ namespace Pf2eModel.Migrations
|
||||
.HasColumnName("name")
|
||||
.HasColumnOrder(4);
|
||||
|
||||
b.Property<int>("Stage")
|
||||
.HasColumnType("integer")
|
||||
b.Property<TrainingStage>("Stage")
|
||||
.HasColumnType("training_stage")
|
||||
.HasColumnName("stage")
|
||||
.HasColumnOrder(5);
|
||||
|
||||
@@ -1047,7 +1086,12 @@ namespace Pf2eModel.Migrations
|
||||
b.Property<int?>("Actions")
|
||||
.HasColumnType("integer")
|
||||
.HasColumnName("actions")
|
||||
.HasColumnOrder(4);
|
||||
.HasColumnOrder(5);
|
||||
|
||||
b.Property<int>("ArchetypeId")
|
||||
.HasColumnType("integer")
|
||||
.HasColumnName("archetype_id")
|
||||
.HasColumnOrder(10);
|
||||
|
||||
b.Property<ActionCategory>("Category")
|
||||
.HasColumnType("action_category")
|
||||
@@ -1057,42 +1101,39 @@ namespace Pf2eModel.Migrations
|
||||
b.Property<string>("Extra")
|
||||
.HasColumnType("text")
|
||||
.HasColumnName("extra")
|
||||
.HasColumnOrder(10);
|
||||
.HasColumnOrder(11);
|
||||
|
||||
b.Property<bool>("IsFreeAction")
|
||||
.HasColumnType("boolean")
|
||||
.HasColumnName("is_free_action")
|
||||
.HasColumnOrder(8);
|
||||
|
||||
b.Property<bool>("IsPassive")
|
||||
.HasColumnType("boolean")
|
||||
.HasColumnName("is_passive")
|
||||
.HasColumnOrder(9);
|
||||
|
||||
b.Property<bool>("IsReaction")
|
||||
.HasColumnType("boolean")
|
||||
.HasColumnName("is_reaction")
|
||||
.HasColumnOrder(7);
|
||||
|
||||
b.Property<int>("Level")
|
||||
.HasColumnType("integer")
|
||||
.HasColumnName("level")
|
||||
.HasColumnOrder(5);
|
||||
.HasColumnOrder(4);
|
||||
|
||||
b.Property<int?>("LevelTaken")
|
||||
b.Property<int?>("MaxActions")
|
||||
.HasColumnType("integer")
|
||||
.HasColumnName("level_taken")
|
||||
.HasColumnName("max_actions")
|
||||
.HasColumnOrder(6);
|
||||
|
||||
b.Property<string>("Location")
|
||||
.HasMaxLength(255)
|
||||
.HasColumnType("character varying(255)")
|
||||
.HasColumnName("location")
|
||||
.HasColumnOrder(8);
|
||||
|
||||
b.Property<int?>("MaxTakable")
|
||||
.HasColumnType("integer")
|
||||
.HasColumnName("max_takable")
|
||||
.HasColumnOrder(7);
|
||||
|
||||
b.Property<bool?>("OnlyLevel1")
|
||||
.HasColumnType("boolean")
|
||||
.HasColumnName("only_level1")
|
||||
.HasColumnOrder(9);
|
||||
|
||||
b.Property<ActionType>("Type")
|
||||
.HasColumnType("action_type")
|
||||
.HasColumnName("type")
|
||||
.HasColumnOrder(2);
|
||||
|
||||
b.HasKey("Id")
|
||||
.HasName("pk_feats");
|
||||
|
||||
b.HasIndex("ArchetypeId")
|
||||
.HasDatabaseName("ix_feats_archetype_id");
|
||||
|
||||
b.ToTable("feats", (string)null);
|
||||
});
|
||||
|
||||
@@ -1625,6 +1666,27 @@ namespace Pf2eModel.Migrations
|
||||
b.Navigation("Language");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Pf2eModel.Model.Structure.Archetype", b =>
|
||||
{
|
||||
b.HasOne("Pf2eModel.Model.Structure.Feat", "DedicationFeat")
|
||||
.WithOne()
|
||||
.HasForeignKey("Pf2eModel.Model.Structure.Archetype", "DedicationFeatId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired()
|
||||
.HasConstraintName("fk_archetype_feats_dedication_feat_id");
|
||||
|
||||
b.HasOne("Pf2eModel.Model.Base.Entity", "Entity")
|
||||
.WithOne()
|
||||
.HasForeignKey("Pf2eModel.Model.Structure.Archetype", "Id")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired()
|
||||
.HasConstraintName("fk_archetype_entities_id");
|
||||
|
||||
b.Navigation("DedicationFeat");
|
||||
|
||||
b.Navigation("Entity");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Pf2eModel.Model.Structure.Background", b =>
|
||||
{
|
||||
b.HasOne("Pf2eModel.Model.Base.Entity", "Entity")
|
||||
@@ -1838,6 +1900,13 @@ namespace Pf2eModel.Migrations
|
||||
|
||||
modelBuilder.Entity("Pf2eModel.Model.Structure.Feat", b =>
|
||||
{
|
||||
b.HasOne("Pf2eModel.Model.Structure.Archetype", "Archetype")
|
||||
.WithMany("Feats")
|
||||
.HasForeignKey("ArchetypeId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired()
|
||||
.HasConstraintName("fk_feats_archetype_archetype_id");
|
||||
|
||||
b.HasOne("Pf2eModel.Model.Base.Entity", "Entity")
|
||||
.WithOne()
|
||||
.HasForeignKey("Pf2eModel.Model.Structure.Feat", "Id")
|
||||
@@ -1845,6 +1914,8 @@ namespace Pf2eModel.Migrations
|
||||
.IsRequired()
|
||||
.HasConstraintName("fk_feats_entities_id");
|
||||
|
||||
b.Navigation("Archetype");
|
||||
|
||||
b.Navigation("Entity");
|
||||
});
|
||||
|
||||
@@ -1997,6 +2068,11 @@ namespace Pf2eModel.Migrations
|
||||
b.Navigation("Heritages");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Pf2eModel.Model.Structure.Archetype", b =>
|
||||
{
|
||||
b.Navigation("Feats");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Pf2eModel.Model.Structure.Background", b =>
|
||||
{
|
||||
b.Navigation("BackgroundBoosts");
|
||||
|
||||
Reference in New Issue
Block a user