Работа с порядком правил
This commit is contained in:
@@ -1404,9 +1404,22 @@ namespace Pf2eModel.Migrations
|
||||
.HasColumnType("text[]")
|
||||
.HasColumnName("breadcrumbs");
|
||||
|
||||
b.Property<int>("Order")
|
||||
.HasColumnType("integer")
|
||||
.HasColumnName("order")
|
||||
.HasColumnOrder(2);
|
||||
|
||||
b.Property<int?>("ParentId")
|
||||
.HasColumnType("integer")
|
||||
.HasColumnName("parent_id")
|
||||
.HasColumnOrder(3);
|
||||
|
||||
b.HasKey("Id")
|
||||
.HasName("pk_rules");
|
||||
|
||||
b.HasIndex("ParentId")
|
||||
.HasDatabaseName("ix_rules_parent_id");
|
||||
|
||||
b.ToTable("rules", (string)null);
|
||||
});
|
||||
|
||||
@@ -2273,7 +2286,14 @@ namespace Pf2eModel.Migrations
|
||||
.IsRequired()
|
||||
.HasConstraintName("fk_rules_entities_id");
|
||||
|
||||
b.HasOne("Pf2eModel.Model.Structure.Rule", "Parent")
|
||||
.WithMany("Children")
|
||||
.HasForeignKey("ParentId")
|
||||
.HasConstraintName("fk_rules_rules_parent_id");
|
||||
|
||||
b.Navigation("Entity");
|
||||
|
||||
b.Navigation("Parent");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Pf2eModel.Model.Structure.Spell", b =>
|
||||
@@ -2453,6 +2473,11 @@ namespace Pf2eModel.Migrations
|
||||
b.Navigation("Checks");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Pf2eModel.Model.Structure.Rule", b =>
|
||||
{
|
||||
b.Navigation("Children");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Pf2eModel.Model.Structure.Spell", b =>
|
||||
{
|
||||
b.Navigation("SpellAreas");
|
||||
|
||||
Reference in New Issue
Block a user