Работа с правилами
This commit is contained in:
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user