Работа с правилами

This commit is contained in:
2025-05-10 15:18:19 +04:00
parent d48dc62fe7
commit 087421be8a
20 changed files with 655 additions and 144 deletions
@@ -233,22 +233,30 @@ namespace Pf2eModel.Migrations
modelBuilder.Entity("Pf2eModel.Model.Base.Source.EntitySource", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasColumnName("id")
.HasColumnOrder(0);
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
b.Property<int>("EntityId")
.HasColumnType("integer")
.HasColumnName("entity_id")
.HasColumnOrder(1);
b.Property<int>("SourceId")
.HasColumnType("integer")
.HasColumnName("source_id")
.HasColumnOrder(2);
b.Property<bool>("IsRemaster")
.HasColumnType("boolean")
.HasColumnName("is_remaster")
.HasColumnOrder(4)
.HasComment("Флаг, указывающий, что объект является частью ремастера");
b.Property<int>("SourceId")
.HasColumnType("integer")
.HasColumnName("source_id")
.HasColumnOrder(2);
b.Property<string>("Suffix")
.IsRequired()
.HasMaxLength(255)
@@ -257,9 +265,12 @@ namespace Pf2eModel.Migrations
.HasColumnOrder(3)
.HasComment("Номер страницы, эррата и т.д.");
b.HasKey("EntityId", "SourceId")
b.HasKey("Id")
.HasName("pk_entity_sources");
b.HasIndex("EntityId")
.HasDatabaseName("ix_entity_sources_entity_id");
b.HasIndex("SourceId")
.HasDatabaseName("ix_entity_sources_source_id");