From 8f76400d77297ecc151c91853f6874fa256a06c2 Mon Sep 17 00:00:00 2001 From: Roman Efremov Date: Fri, 13 Dec 2024 11:00:41 +0500 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20=D0=BC=D0=B8=D0=B3=D1=80=D0=B0=D1=86=D0=B8=D1=8E=20?= =?UTF-8?q?=D0=BF=D0=BE=20=D1=87=D0=B0=D1=81=D1=82=D0=B8=20DataSourceSyste?= =?UTF-8?q?m?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../20241212041758_TechMessageMigration.cs | 16 ++++++++-------- .../PersistencePostgresContextModelSnapshot.cs | 12 ++++++------ 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/Persistence.Database.Postgres/Migrations/20241212041758_TechMessageMigration.cs b/Persistence.Database.Postgres/Migrations/20241212041758_TechMessageMigration.cs index c6806a4..c0066ae 100644 --- a/Persistence.Database.Postgres/Migrations/20241212041758_TechMessageMigration.cs +++ b/Persistence.Database.Postgres/Migrations/20241212041758_TechMessageMigration.cs @@ -11,16 +11,16 @@ namespace Persistence.Database.Postgres.Migrations.PersistencePostgres protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( - name: "DrillingSystem", + name: "DataSourceSystem", columns: table => new { - SystemId = table.Column(type: "uuid", nullable: false, comment: "Id системы автобурения"), - Name = table.Column(type: "varchar(256)", nullable: false, comment: "Наименование системы автобурения"), - Description = table.Column(type: "text", nullable: true, comment: "Описание системы автобурения") + SystemId = table.Column(type: "uuid", nullable: false, comment: "Id системы - источника данных"), + Name = table.Column(type: "varchar(256)", nullable: false, comment: "Наименование системы - источника данных"), + Description = table.Column(type: "text", nullable: true, comment: "Описание системы - источника данных") }, constraints: table => { - table.PrimaryKey("PK_DrillingSystem", x => x.SystemId); + table.PrimaryKey("PK_DataSourceSystem", x => x.SystemId); }); migrationBuilder.CreateTable( @@ -38,9 +38,9 @@ namespace Persistence.Database.Postgres.Migrations.PersistencePostgres { table.PrimaryKey("PK_TechMessage", x => x.EventId); table.ForeignKey( - name: "FK_TechMessage_DrillingSystem_SystemId", + name: "FK_TechMessage_DataSourceSystem_SystemId", column: x => x.SystemId, - principalTable: "DrillingSystem", + principalTable: "DataSourceSystem", principalColumn: "SystemId", onDelete: ReferentialAction.Cascade); }); @@ -58,7 +58,7 @@ namespace Persistence.Database.Postgres.Migrations.PersistencePostgres name: "TechMessage"); migrationBuilder.DropTable( - name: "DrillingSystem"); + name: "DataSourceSystem"); } } } diff --git a/Persistence.Database.Postgres/Migrations/PersistencePostgresContextModelSnapshot.cs b/Persistence.Database.Postgres/Migrations/PersistencePostgresContextModelSnapshot.cs index 5a67396..f233af8 100644 --- a/Persistence.Database.Postgres/Migrations/PersistencePostgresContextModelSnapshot.cs +++ b/Persistence.Database.Postgres/Migrations/PersistencePostgresContextModelSnapshot.cs @@ -24,25 +24,25 @@ namespace Persistence.Database.Postgres.Migrations NpgsqlModelBuilderExtensions.HasPostgresExtension(modelBuilder, "adminpack"); NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); - modelBuilder.Entity("Persistence.Database.Entity.DrillingSystem", b => + modelBuilder.Entity("Persistence.Database.Entity.DataSourceSystem", b => { b.Property("SystemId") .ValueGeneratedOnAdd() .HasColumnType("uuid") - .HasComment("Id системы автобурения"); + .HasComment("Id системы - источника данных"); b.Property("Description") .HasColumnType("text") - .HasComment("Описание системы автобурения"); + .HasComment("Описание системы - источника данных"); b.Property("Name") .IsRequired() .HasColumnType("varchar(256)") - .HasComment("Наименование системы автобурения"); + .HasComment("Наименование системы - источника данных"); b.HasKey("SystemId"); - b.ToTable("DrillingSystem"); + b.ToTable("DataSourceSystem"); }); modelBuilder.Entity("Persistence.Database.Entity.ParameterData", b => @@ -289,7 +289,7 @@ namespace Persistence.Database.Postgres.Migrations modelBuilder.Entity("Persistence.Database.Entity.TechMessage", b => { - b.HasOne("Persistence.Database.Entity.DrillingSystem", "System") + b.HasOne("Persistence.Database.Entity.DataSourceSystem", "System") .WithMany() .HasForeignKey("SystemId") .OnDelete(DeleteBehavior.Cascade)