using System;
using Microsoft.EntityFrameworkCore.Migrations;
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
#nullable disable
namespace AsbCloudDb.Migrations
{
///
public partial class Add_Tables_ProcessMapOperationsAndFunctions : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "differential_pressure_limit_max",
table: "t_process_map_plan_slide");
migrationBuilder.DropColumn(
name: "flow_rate_limit_max",
table: "t_process_map_plan_slide");
migrationBuilder.DropColumn(
name: "pressure_limit_max",
table: "t_process_map_plan_slide");
migrationBuilder.DropColumn(
name: "rop_limit_max",
table: "t_process_map_plan_slide");
migrationBuilder.DropColumn(
name: "tool_buckling",
table: "t_process_map_plan_slide");
migrationBuilder.DropColumn(
name: "weight_on_bit_limit_max",
table: "t_process_map_plan_slide");
migrationBuilder.RenameColumn(
name: "pressure_limit_max",
table: "t_process_map_plan_rotor",
newName: "pressure_max");
migrationBuilder.RenameColumn(
name: "weight_on_bit_limit_max",
table: "t_process_map_plan_rotor",
newName: "weight_on_bit_max");
migrationBuilder.RenameColumn(
name: "top_drive_torque_limit_max",
table: "t_process_map_plan_rotor",
newName: "top_drive_torque_max");
migrationBuilder.RenameColumn(
name: "rop_limit_max",
table: "t_process_map_plan_rotor",
newName: "rop_max");
migrationBuilder.RenameColumn(
name: "revolutions_per_minute_limit_max",
table: "t_process_map_plan_rotor",
newName: "rpm_max");
migrationBuilder.RenameColumn(
name: "revolution_per_minute",
table: "t_process_map_plan_rotor",
newName: "rpm");
migrationBuilder.RenameColumn(
name: "flow_rate_limit_max",
table: "t_process_map_plan_rotor",
newName: "flow_rate_max");
migrationBuilder.RenameColumn(
name: "differential_pressure_limit_max",
table: "t_process_map_plan_rotor",
newName: "differential_pressure_max");
migrationBuilder.AlterColumn(
name: "weight_on_bit",
table: "t_process_map_plan_slide",
type: "double precision",
nullable: false,
comment: "Нагрузка уставка, т.",
oldClrType: typeof(double),
oldType: "double precision",
oldComment: "Нагрузка, т. Уставка");
migrationBuilder.AlterColumn(
name: "flow_rate",
table: "t_process_map_plan_slide",
type: "double precision",
nullable: false,
comment: "Расход уставка, л/с.",
oldClrType: typeof(double),
oldType: "double precision",
oldComment: "Расход л/с. Уставка");
migrationBuilder.AlterColumn(
name: "differential_pressure",
table: "t_process_map_plan_slide",
type: "double precision",
nullable: false,
comment: "Перепад давления уставка, атм.",
oldClrType: typeof(double),
oldType: "double precision",
oldComment: "Перепад давления, атм. Уставка");
migrationBuilder.AddColumn(
name: "buckling",
table: "t_process_map_plan_slide",
type: "double precision",
nullable: false,
defaultValue: 0.0,
comment: "Складывание инструмента, м.");
migrationBuilder.AddColumn(
name: "differential_pressure_max",
table: "t_process_map_plan_slide",
type: "double precision",
nullable: false,
defaultValue: 0.0,
comment: "Перепад давления ограничение, атм.");
migrationBuilder.AddColumn(
name: "flow_rate_max",
table: "t_process_map_plan_slide",
type: "double precision",
nullable: false,
defaultValue: 0.0,
comment: "Расход ограничение, л/с.");
migrationBuilder.AddColumn(
name: "pressure_max",
table: "t_process_map_plan_slide",
type: "double precision",
nullable: false,
defaultValue: 0.0,
comment: "Максимально допустимое давление, атм.");
migrationBuilder.AddColumn(
name: "rop_max",
table: "t_process_map_plan_slide",
type: "double precision",
nullable: false,
defaultValue: 0.0,
comment: "Максимально допустимая скорость, м/ч.");
migrationBuilder.AddColumn(
name: "weight_on_bit_max",
table: "t_process_map_plan_slide",
type: "double precision",
nullable: false,
defaultValue: 0.0,
comment: "Нагрузка ограничение, т.");
migrationBuilder.CreateTable(
name: "t_process_map_plan_anti_crash_rotation",
columns: table => new
{
id = table.Column(type: "integer", nullable: false, comment: "Идентификатор")
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
top_drive_rpm_min = table.Column(type: "double precision", nullable: false, comment: "Минимальные обороты ВСП, об/мин"),
top_drive_start_min_flow_rate = table.Column(type: "double precision", nullable: false, comment: "Минимальный расход для запуска оборотов ВСП, л/сек"),
top_drive_torque_max = table.Column(type: "double precision", nullable: false, comment: "Максимально допустимый момент на ВСП при противоаварийном вращении, кН*м"),
id_author = table.Column(type: "integer", nullable: false, comment: "Автор"),
id_editor = table.Column(type: "integer", nullable: true, comment: "Редактор"),
creation = table.Column(type: "timestamp with time zone", nullable: false, comment: "дата создания"),
obsolete = table.Column(type: "timestamp with time zone", nullable: true, comment: "дата устаревания"),
id_state = table.Column(type: "integer", nullable: false, comment: "ИД состояния записи: \n0 - актуальная\n1 - замененная\n2 - удаленная"),
id_previous = table.Column(type: "integer", nullable: true, comment: "ИД состояния записи: \n0 - актуальная\n1 - замененная\n2 - удаленная"),
id_well = table.Column(type: "integer", nullable: false, comment: "Id скважины"),
id_wellsection_type = table.Column(type: "integer", nullable: false, comment: "Тип секции"),
depth_start = table.Column(type: "double precision", nullable: false, comment: "Глубина по стволу от, м"),
depth_end = table.Column(type: "double precision", nullable: false, comment: "Глубина по стволу до, м")
},
constraints: table =>
{
table.PrimaryKey("PK_t_process_map_plan_anti_crash_rotation", x => x.id);
table.ForeignKey(
name: "FK_t_process_map_plan_anti_crash_rotation_t_process_map_plan_a~",
column: x => x.id_previous,
principalTable: "t_process_map_plan_anti_crash_rotation",
principalColumn: "id");
table.ForeignKey(
name: "FK_t_process_map_plan_anti_crash_rotation_t_user_id_author",
column: x => x.id_author,
principalTable: "t_user",
principalColumn: "id",
onDelete: ReferentialAction.Restrict);
table.ForeignKey(
name: "FK_t_process_map_plan_anti_crash_rotation_t_user_id_editor",
column: x => x.id_editor,
principalTable: "t_user",
principalColumn: "id",
onDelete: ReferentialAction.Restrict);
table.ForeignKey(
name: "FK_t_process_map_plan_anti_crash_rotation_t_well_id_well",
column: x => x.id_well,
principalTable: "t_well",
principalColumn: "id",
onDelete: ReferentialAction.Cascade);
table.ForeignKey(
name: "FK_t_process_map_plan_anti_crash_rotation_t_well_section_type_~",
column: x => x.id_wellsection_type,
principalTable: "t_well_section_type",
principalColumn: "id",
onDelete: ReferentialAction.Cascade);
},
comment: "Противоаварийное вращение");
migrationBuilder.CreateTable(
name: "t_process_map_plan_auto_hold_tf",
columns: table => new
{
id = table.Column(type: "integer", nullable: false, comment: "Идентификатор")
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
zenit_angle = table.Column(type: "double precision", nullable: false, comment: "Зенитный угол, градусы"),
note = table.Column(type: "character varying(1024)", maxLength: 1024, nullable: false, comment: "Примечание"),
id_author = table.Column(type: "integer", nullable: false, comment: "Автор"),
id_editor = table.Column(type: "integer", nullable: true, comment: "Редактор"),
creation = table.Column(type: "timestamp with time zone", nullable: false, comment: "дата создания"),
obsolete = table.Column(type: "timestamp with time zone", nullable: true, comment: "дата устаревания"),
id_state = table.Column(type: "integer", nullable: false, comment: "ИД состояния записи: \n0 - актуальная\n1 - замененная\n2 - удаленная"),
id_previous = table.Column(type: "integer", nullable: true, comment: "ИД состояния записи: \n0 - актуальная\n1 - замененная\n2 - удаленная"),
id_well = table.Column(type: "integer", nullable: false, comment: "Id скважины"),
id_wellsection_type = table.Column(type: "integer", nullable: false, comment: "Тип секции"),
depth_start = table.Column(type: "double precision", nullable: false, comment: "Глубина по стволу от, м"),
depth_end = table.Column(type: "double precision", nullable: false, comment: "Глубина по стволу до, м")
},
constraints: table =>
{
table.PrimaryKey("PK_t_process_map_plan_auto_hold_tf", x => x.id);
table.ForeignKey(
name: "FK_t_process_map_plan_auto_hold_tf_t_process_map_plan_auto_hol~",
column: x => x.id_previous,
principalTable: "t_process_map_plan_auto_hold_tf",
principalColumn: "id");
table.ForeignKey(
name: "FK_t_process_map_plan_auto_hold_tf_t_user_id_author",
column: x => x.id_author,
principalTable: "t_user",
principalColumn: "id",
onDelete: ReferentialAction.Restrict);
table.ForeignKey(
name: "FK_t_process_map_plan_auto_hold_tf_t_user_id_editor",
column: x => x.id_editor,
principalTable: "t_user",
principalColumn: "id",
onDelete: ReferentialAction.Restrict);
table.ForeignKey(
name: "FK_t_process_map_plan_auto_hold_tf_t_well_id_well",
column: x => x.id_well,
principalTable: "t_well",
principalColumn: "id",
onDelete: ReferentialAction.Cascade);
table.ForeignKey(
name: "FK_t_process_map_plan_auto_hold_tf_t_well_section_type_id_well~",
column: x => x.id_wellsection_type,
principalTable: "t_well_section_type",
principalColumn: "id",
onDelete: ReferentialAction.Cascade);
},
comment: "Автоудержание TF");
migrationBuilder.CreateTable(
name: "t_process_map_plan_drilltest",
columns: table => new
{
id = table.Column(type: "integer", nullable: false, comment: "Идентификатор")
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
weight_on_bit_min = table.Column(type: "double precision", nullable: false, comment: "Нагрузка минимальная, т"),
weight_on_bit_steps_count = table.Column(type: "integer", nullable: false, comment: "Количество шагов по нагрузке"),
rpm_min = table.Column(type: "double precision", nullable: false, comment: "Минимальные обороты на ВСП, об/мин."),
rpm_steps_count = table.Column(type: "integer", nullable: false, comment: "Количество шагов оборотов на ВСП, об/мин."),
length_step = table.Column(type: "double precision", nullable: false, comment: "Величина проходки шага, м."),
note = table.Column(type: "character varying(1024)", maxLength: 1024, nullable: false, comment: "Примечание"),
id_author = table.Column(type: "integer", nullable: false, comment: "Автор"),
id_editor = table.Column(type: "integer", nullable: true, comment: "Редактор"),
creation = table.Column(type: "timestamp with time zone", nullable: false, comment: "дата создания"),
obsolete = table.Column(type: "timestamp with time zone", nullable: true, comment: "дата устаревания"),
id_state = table.Column(type: "integer", nullable: false, comment: "ИД состояния записи: \n0 - актуальная\n1 - замененная\n2 - удаленная"),
id_previous = table.Column(type: "integer", nullable: true, comment: "ИД состояния записи: \n0 - актуальная\n1 - замененная\n2 - удаленная"),
id_well = table.Column(type: "integer", nullable: false, comment: "Id скважины"),
id_wellsection_type = table.Column(type: "integer", nullable: false, comment: "Тип секции"),
depth_start = table.Column(type: "double precision", nullable: false, comment: "Глубина по стволу от, м"),
depth_end = table.Column(type: "double precision", nullable: false, comment: "Глубина по стволу до, м")
},
constraints: table =>
{
table.PrimaryKey("PK_t_process_map_plan_drilltest", x => x.id);
table.ForeignKey(
name: "FK_t_process_map_plan_drilltest_t_process_map_plan_drilltest_i~",
column: x => x.id_previous,
principalTable: "t_process_map_plan_drilltest",
principalColumn: "id");
table.ForeignKey(
name: "FK_t_process_map_plan_drilltest_t_user_id_author",
column: x => x.id_author,
principalTable: "t_user",
principalColumn: "id",
onDelete: ReferentialAction.Restrict);
table.ForeignKey(
name: "FK_t_process_map_plan_drilltest_t_user_id_editor",
column: x => x.id_editor,
principalTable: "t_user",
principalColumn: "id",
onDelete: ReferentialAction.Restrict);
table.ForeignKey(
name: "FK_t_process_map_plan_drilltest_t_well_id_well",
column: x => x.id_well,
principalTable: "t_well",
principalColumn: "id",
onDelete: ReferentialAction.Cascade);
table.ForeignKey(
name: "FK_t_process_map_plan_drilltest_t_well_section_type_id_wellsec~",
column: x => x.id_wellsection_type,
principalTable: "t_well_section_type",
principalColumn: "id",
onDelete: ReferentialAction.Cascade);
},
comment: "DrillTest");
migrationBuilder.CreateTable(
name: "t_process_map_plan_functions_damper",
columns: table => new
{
id = table.Column(type: "integer", nullable: false, comment: "Идентификатор")
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
stick_slip = table.Column(type: "double precision", nullable: false, comment: "StickSlip"),
note = table.Column(type: "character varying(1024)", maxLength: 1024, nullable: false, comment: "Примечание"),
id_author = table.Column(type: "integer", nullable: false, comment: "Автор"),
id_editor = table.Column(type: "integer", nullable: true, comment: "Редактор"),
creation = table.Column(type: "timestamp with time zone", nullable: false, comment: "дата создания"),
obsolete = table.Column(type: "timestamp with time zone", nullable: true, comment: "дата устаревания"),
id_state = table.Column(type: "integer", nullable: false, comment: "ИД состояния записи: \n0 - актуальная\n1 - замененная\n2 - удаленная"),
id_previous = table.Column(type: "integer", nullable: true, comment: "ИД состояния записи: \n0 - актуальная\n1 - замененная\n2 - удаленная"),
id_well = table.Column(type: "integer", nullable: false, comment: "Id скважины"),
id_wellsection_type = table.Column(type: "integer", nullable: false, comment: "Тип секции"),
depth_start = table.Column(type: "double precision", nullable: false, comment: "Глубина по стволу от, м"),
depth_end = table.Column(type: "double precision", nullable: false, comment: "Глубина по стволу до, м")
},
constraints: table =>
{
table.PrimaryKey("PK_t_process_map_plan_functions_damper", x => x.id);
table.ForeignKey(
name: "FK_t_process_map_plan_functions_damper_t_process_map_plan_func~",
column: x => x.id_previous,
principalTable: "t_process_map_plan_functions_damper",
principalColumn: "id");
table.ForeignKey(
name: "FK_t_process_map_plan_functions_damper_t_user_id_author",
column: x => x.id_author,
principalTable: "t_user",
principalColumn: "id",
onDelete: ReferentialAction.Restrict);
table.ForeignKey(
name: "FK_t_process_map_plan_functions_damper_t_user_id_editor",
column: x => x.id_editor,
principalTable: "t_user",
principalColumn: "id",
onDelete: ReferentialAction.Restrict);
table.ForeignKey(
name: "FK_t_process_map_plan_functions_damper_t_well_id_well",
column: x => x.id_well,
principalTable: "t_well",
principalColumn: "id",
onDelete: ReferentialAction.Cascade);
table.ForeignKey(
name: "FK_t_process_map_plan_functions_damper_t_well_section_type_id_~",
column: x => x.id_wellsection_type,
principalTable: "t_well_section_type",
principalColumn: "id",
onDelete: ReferentialAction.Cascade);
},
comment: "Демпфер");
migrationBuilder.CreateTable(
name: "t_process_map_plan_load_capacity",
columns: table => new
{
id = table.Column(type: "integer", nullable: false, comment: "Идентификатор")
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
time_load_capacity_min = table.Column(type: "double precision", nullable: false, comment: "Время выработки минимальное, сек"),
differential_pressure_min = table.Column(type: "double precision", nullable: false, comment: "Перепад давления минимальный, атм"),
weight_on_bit_min = table.Column(type: "double precision", nullable: false, comment: "Нагрузка минимальная, т"),
note = table.Column(type: "character varying(1024)", maxLength: 1024, nullable: false, comment: "Примечание"),
id_author = table.Column(type: "integer", nullable: false, comment: "Автор"),
id_editor = table.Column(type: "integer", nullable: true, comment: "Редактор"),
creation = table.Column(type: "timestamp with time zone", nullable: false, comment: "дата создания"),
obsolete = table.Column(type: "timestamp with time zone", nullable: true, comment: "дата устаревания"),
id_state = table.Column(type: "integer", nullable: false, comment: "ИД состояния записи: \n0 - актуальная\n1 - замененная\n2 - удаленная"),
id_previous = table.Column(type: "integer", nullable: true, comment: "ИД состояния записи: \n0 - актуальная\n1 - замененная\n2 - удаленная"),
id_well = table.Column(type: "integer", nullable: false, comment: "Id скважины"),
id_wellsection_type = table.Column(type: "integer", nullable: false, comment: "Тип секции"),
depth_start = table.Column(type: "double precision", nullable: false, comment: "Глубина по стволу от, м"),
depth_end = table.Column(type: "double precision", nullable: false, comment: "Глубина по стволу до, м")
},
constraints: table =>
{
table.PrimaryKey("PK_t_process_map_plan_load_capacity", x => x.id);
table.ForeignKey(
name: "FK_t_process_map_plan_load_capacity_t_process_map_plan_load_ca~",
column: x => x.id_previous,
principalTable: "t_process_map_plan_load_capacity",
principalColumn: "id");
table.ForeignKey(
name: "FK_t_process_map_plan_load_capacity_t_user_id_author",
column: x => x.id_author,
principalTable: "t_user",
principalColumn: "id",
onDelete: ReferentialAction.Restrict);
table.ForeignKey(
name: "FK_t_process_map_plan_load_capacity_t_user_id_editor",
column: x => x.id_editor,
principalTable: "t_user",
principalColumn: "id",
onDelete: ReferentialAction.Restrict);
table.ForeignKey(
name: "FK_t_process_map_plan_load_capacity_t_well_id_well",
column: x => x.id_well,
principalTable: "t_well",
principalColumn: "id",
onDelete: ReferentialAction.Cascade);
table.ForeignKey(
name: "FK_t_process_map_plan_load_capacity_t_well_section_type_id_wel~",
column: x => x.id_wellsection_type,
principalTable: "t_well_section_type",
principalColumn: "id",
onDelete: ReferentialAction.Cascade);
},
comment: "РТК выработка нагрузки");
migrationBuilder.CreateTable(
name: "t_process_map_plan_operation_oscillation_angels",
columns: table => new
{
id = table.Column(type: "integer", nullable: false, comment: "Идентификатор")
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
top_drive_torque = table.Column(type: "double precision", nullable: false, comment: "Момент на ВСП, кН*м., Уставка"),
top_drive_torque_max = table.Column(type: "double precision", nullable: false, comment: "Момент на ВСП, кН*м., Ограничение"),
rpm = table.Column(type: "double precision", nullable: false, comment: "Обороты на ВСП, об/мин., Уставка"),
rpm_max = table.Column(type: "double precision", nullable: false, comment: "Обороты на ВСП, об/мин., Ограничение"),
note = table.Column(type: "character varying(1024)", maxLength: 1024, nullable: false, comment: "Примечание"),
id_author = table.Column(type: "integer", nullable: false, comment: "Автор"),
id_editor = table.Column(type: "integer", nullable: true, comment: "Редактор"),
creation = table.Column(type: "timestamp with time zone", nullable: false, comment: "дата создания"),
obsolete = table.Column(type: "timestamp with time zone", nullable: true, comment: "дата устаревания"),
id_state = table.Column(type: "integer", nullable: false, comment: "ИД состояния записи: \n0 - актуальная\n1 - замененная\n2 - удаленная"),
id_previous = table.Column(type: "integer", nullable: true, comment: "ИД состояния записи: \n0 - актуальная\n1 - замененная\n2 - удаленная"),
id_well = table.Column(type: "integer", nullable: false, comment: "Id скважины"),
id_wellsection_type = table.Column(type: "integer", nullable: false, comment: "Тип секции"),
depth_start = table.Column(type: "double precision", nullable: false, comment: "Глубина по стволу от, м"),
depth_end = table.Column(type: "double precision", nullable: false, comment: "Глубина по стволу до, м")
},
constraints: table =>
{
table.PrimaryKey("PK_t_process_map_plan_operation_oscillation_angels", x => x.id);
table.ForeignKey(
name: "FK_t_process_map_plan_operation_oscillation_angels_t_process_m~",
column: x => x.id_previous,
principalTable: "t_process_map_plan_operation_oscillation_angels",
principalColumn: "id");
table.ForeignKey(
name: "FK_t_process_map_plan_operation_oscillation_angels_t_user_id_a~",
column: x => x.id_author,
principalTable: "t_user",
principalColumn: "id",
onDelete: ReferentialAction.Restrict);
table.ForeignKey(
name: "FK_t_process_map_plan_operation_oscillation_angels_t_user_id_e~",
column: x => x.id_editor,
principalTable: "t_user",
principalColumn: "id",
onDelete: ReferentialAction.Restrict);
table.ForeignKey(
name: "FK_t_process_map_plan_operation_oscillation_angels_t_well_id_w~",
column: x => x.id_well,
principalTable: "t_well",
principalColumn: "id",
onDelete: ReferentialAction.Cascade);
table.ForeignKey(
name: "FK_t_process_map_plan_operation_oscillation_angels_t_well_sect~",
column: x => x.id_wellsection_type,
principalTable: "t_well_section_type",
principalColumn: "id",
onDelete: ReferentialAction.Cascade);
},
comment: "Определение углов осцилляции");
migrationBuilder.CreateTable(
name: "t_process_map_plan_operation_reaming_rotor",
columns: table => new
{
id = table.Column(type: "integer", nullable: false, comment: "Идентификатор")
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
pressure_max = table.Column(type: "double precision", nullable: false, comment: "Максимально допустимое давление, атм."),
differential_pressure = table.Column(type: "double precision", nullable: false, comment: "Перепад давления уставка, атм."),
tight = table.Column(type: "double precision", nullable: false, comment: "Затяжка, т."),
slacking_off = table.Column(type: "double precision", nullable: false, comment: "Посадка, т."),
torque_max = table.Column(type: "double precision", nullable: false, comment: "Максимально допустимый момент, кН*м."),
reaming1_repetitions_count = table.Column(type: "integer", nullable: false, comment: "Проработка 1. Количество повторений, шт."),
reaming1_rop_up = table.Column(type: "double precision", nullable: false, comment: "Проработка 1. Скорость вверх, м/ч."),
reaming1_rop_down = table.Column(type: "double precision", nullable: false, comment: "Проработка 1, Скорость, м/ч., Вниз"),
reaming1_rpm_up = table.Column(type: "double precision", nullable: false, comment: "Проработка 1, Обороты, об/мин., Вверх"),
reaming1_rpm_down = table.Column(type: "double precision", nullable: false, comment: "Проработка 1, Обороты, об/мин., Вниз"),
reaming1_flow_rate_up = table.Column(type: "double precision", nullable: false, comment: "Проработка 1, Расход, л/с., Вверх"),
reaming1_flow_rate_down = table.Column(type: "double precision", nullable: false, comment: "Проработка 1, Расход, л/с., Вниз"),
reaming1_interval = table.Column(type: "double precision", nullable: false, comment: "Проработка 1, Интервал проработки, м."),
reaming1_stop_point_off_bottom = table.Column(type: "double precision", nullable: false, comment: "Остановка над забоем, м."),
reaming2_repetitions_count = table.Column(type: "integer", nullable: false, comment: "Проработка 2, Количество повторений, шт."),
reaming2_rop_up = table.Column(type: "double precision", nullable: false, comment: "Проработка 2, Скорость, м/ч., Вверх"),
reaming2_rop_down = table.Column(type: "double precision", nullable: false, comment: "Проработка 2, Скорость, м/ч., Вниз"),
reaming2_rpm_up = table.Column(type: "double precision", nullable: false, comment: "Проработка 2, Обороты, об/мин., Вверх"),
reaming2_rpm_down = table.Column(type: "double precision", nullable: false, comment: "Проработка 2, Обороты, об/мин., Вниз"),
reaming2_flow_rate_up = table.Column(type: "double precision", nullable: false, comment: "Проработка 2, Расход, л/с., Вверх"),
reaming2_flow_rate_down = table.Column(type: "double precision", nullable: false, comment: "Проработка 2, Расход, л/с., Вниз"),
reaming2_interval = table.Column(type: "double precision", nullable: false, comment: "Проработка 2, Интервал проработки, м."),
reaming2_stop_point_off_bottom = table.Column(type: "double precision", nullable: false, comment: "Остановка над забоем, м."),
reaming3_repetitions_count = table.Column(type: "integer", nullable: false, comment: "Проработка 3, Количество повторений, шт."),
reaming3_rop_up = table.Column(type: "double precision", nullable: false, comment: "Проработка 3, Скорость, м/ч., Вверх"),
reaming3_rop_down = table.Column(type: "double precision", nullable: false, comment: "Проработка 3, Скорость, м/ч., Вниз"),
reaming3_rpm_up = table.Column(type: "double precision", nullable: false, comment: "Проработка 3, Обороты, об/мин., Вверх"),
reaming3_rpm_down = table.Column(type: "double precision", nullable: false, comment: "Проработка 3, Обороты, об/мин., Вниз"),
reaming3_flow_rate_up = table.Column(type: "double precision", nullable: false, comment: "Проработка 3, Расход, л/с., Вверх"),
reaming3_flow_rate_down = table.Column(type: "double precision", nullable: false, comment: "Проработка 3, Расход, л/с., Вниз"),
reaming3_interval = table.Column(type: "double precision", nullable: false, comment: "Проработка 3, Интервал проработки, м."),
reaming3_stop_point_off_bottom = table.Column(type: "double precision", nullable: false, comment: "Остановка над забоем, м."),
note = table.Column(type: "character varying(1024)", maxLength: 1024, nullable: false, comment: "Примечание"),
id_author = table.Column(type: "integer", nullable: false, comment: "Автор"),
id_editor = table.Column(type: "integer", nullable: true, comment: "Редактор"),
creation = table.Column(type: "timestamp with time zone", nullable: false, comment: "дата создания"),
obsolete = table.Column(type: "timestamp with time zone", nullable: true, comment: "дата устаревания"),
id_state = table.Column(type: "integer", nullable: false, comment: "ИД состояния записи: \n0 - актуальная\n1 - замененная\n2 - удаленная"),
id_previous = table.Column(type: "integer", nullable: true, comment: "ИД состояния записи: \n0 - актуальная\n1 - замененная\n2 - удаленная"),
id_well = table.Column(type: "integer", nullable: false, comment: "Id скважины"),
id_wellsection_type = table.Column(type: "integer", nullable: false, comment: "Тип секции"),
depth_start = table.Column(type: "double precision", nullable: false, comment: "Глубина по стволу от, м"),
depth_end = table.Column(type: "double precision", nullable: false, comment: "Глубина по стволу до, м")
},
constraints: table =>
{
table.PrimaryKey("PK_t_process_map_plan_operation_reaming_rotor", x => x.id);
table.ForeignKey(
name: "FK_t_process_map_plan_operation_reaming_rotor_t_process_map_pl~",
column: x => x.id_previous,
principalTable: "t_process_map_plan_operation_reaming_rotor",
principalColumn: "id");
table.ForeignKey(
name: "FK_t_process_map_plan_operation_reaming_rotor_t_user_id_author",
column: x => x.id_author,
principalTable: "t_user",
principalColumn: "id",
onDelete: ReferentialAction.Restrict);
table.ForeignKey(
name: "FK_t_process_map_plan_operation_reaming_rotor_t_user_id_editor",
column: x => x.id_editor,
principalTable: "t_user",
principalColumn: "id",
onDelete: ReferentialAction.Restrict);
table.ForeignKey(
name: "FK_t_process_map_plan_operation_reaming_rotor_t_well_id_well",
column: x => x.id_well,
principalTable: "t_well",
principalColumn: "id",
onDelete: ReferentialAction.Cascade);
table.ForeignKey(
name: "FK_t_process_map_plan_operation_reaming_rotor_t_well_section_t~",
column: x => x.id_wellsection_type,
principalTable: "t_well_section_type",
principalColumn: "id",
onDelete: ReferentialAction.Cascade);
},
comment: "РТК проработка ротор");
migrationBuilder.CreateTable(
name: "t_process_map_plan_operation_switching_off_the_pump",
columns: table => new
{
id = table.Column(type: "integer", nullable: false, comment: "Идентификатор")
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
duration = table.Column(type: "double precision", nullable: false, comment: "Продолжительность, сек."),
residual_pressure_limit = table.Column(type: "double precision", nullable: false, comment: "Лимит остаточного давления, атм."),
id_author = table.Column(type: "integer", nullable: false, comment: "Автор"),
id_editor = table.Column(type: "integer", nullable: true, comment: "Редактор"),
creation = table.Column(type: "timestamp with time zone", nullable: false, comment: "дата создания"),
obsolete = table.Column(type: "timestamp with time zone", nullable: true, comment: "дата устаревания"),
id_state = table.Column(type: "integer", nullable: false, comment: "ИД состояния записи: \n0 - актуальная\n1 - замененная\n2 - удаленная"),
id_previous = table.Column(type: "integer", nullable: true, comment: "ИД состояния записи: \n0 - актуальная\n1 - замененная\n2 - удаленная"),
id_well = table.Column(type: "integer", nullable: false, comment: "Id скважины"),
id_wellsection_type = table.Column(type: "integer", nullable: false, comment: "Тип секции"),
depth_start = table.Column(type: "double precision", nullable: false, comment: "Глубина по стволу от, м"),
depth_end = table.Column(type: "double precision", nullable: false, comment: "Глубина по стволу до, м")
},
constraints: table =>
{
table.PrimaryKey("PK_t_process_map_plan_operation_switching_off_the_pump", x => x.id);
table.ForeignKey(
name: "FK_t_process_map_plan_operation_switching_off_the_pump_t_proce~",
column: x => x.id_previous,
principalTable: "t_process_map_plan_operation_switching_off_the_pump",
principalColumn: "id");
table.ForeignKey(
name: "FK_t_process_map_plan_operation_switching_off_the_pump_t_user_~",
column: x => x.id_author,
principalTable: "t_user",
principalColumn: "id",
onDelete: ReferentialAction.Restrict);
table.ForeignKey(
name: "FK_t_process_map_plan_operation_switching_off_the_pump_t_user~1",
column: x => x.id_editor,
principalTable: "t_user",
principalColumn: "id",
onDelete: ReferentialAction.Restrict);
table.ForeignKey(
name: "FK_t_process_map_plan_operation_switching_off_the_pump_t_well_~",
column: x => x.id_well,
principalTable: "t_well",
principalColumn: "id",
onDelete: ReferentialAction.Cascade);
table.ForeignKey(
name: "FK_t_process_map_plan_operation_switching_off_the_pump_t_well~1",
column: x => x.id_wellsection_type,
principalTable: "t_well_section_type",
principalColumn: "id",
onDelete: ReferentialAction.Cascade);
},
comment: "Выключение насоса");
migrationBuilder.CreateTable(
name: "t_process_map_plan_oscillation",
columns: table => new
{
id = table.Column(type: "integer", nullable: false, comment: "Идентификатор")
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
optimal_oscillation_angle = table.Column(type: "double precision", nullable: false, comment: "Оптимальный угол осцилляции, градусы"),
Rpm_right = table.Column(type: "double precision", nullable: false, comment: "Скорость вправо, об/мин"),
Rpm_left = table.Column(type: "double precision", nullable: false, comment: "Скорость влево, об/мин"),
torque_max_right = table.Column(type: "double precision", nullable: false, comment: "Ограничение момента вправо, кН*м"),
torque_max_left = table.Column(type: "double precision", nullable: false, comment: "Ограничение момента влево, кН*м"),
mode = table.Column(type: "integer", nullable: false, comment: "Режим Авто/Руч"),
note = table.Column(type: "character varying(1024)", maxLength: 1024, nullable: false, comment: "Примечание"),
id_author = table.Column(type: "integer", nullable: false, comment: "Автор"),
id_editor = table.Column(type: "integer", nullable: true, comment: "Редактор"),
creation = table.Column(type: "timestamp with time zone", nullable: false, comment: "дата создания"),
obsolete = table.Column(type: "timestamp with time zone", nullable: true, comment: "дата устаревания"),
id_state = table.Column(type: "integer", nullable: false, comment: "ИД состояния записи: \n0 - актуальная\n1 - замененная\n2 - удаленная"),
id_previous = table.Column(type: "integer", nullable: true, comment: "ИД состояния записи: \n0 - актуальная\n1 - замененная\n2 - удаленная"),
id_well = table.Column(type: "integer", nullable: false, comment: "Id скважины"),
id_wellsection_type = table.Column(type: "integer", nullable: false, comment: "Тип секции"),
depth_start = table.Column(type: "double precision", nullable: false, comment: "Глубина по стволу от, м"),
depth_end = table.Column(type: "double precision", nullable: false, comment: "Глубина по стволу до, м")
},
constraints: table =>
{
table.PrimaryKey("PK_t_process_map_plan_oscillation", x => x.id);
table.ForeignKey(
name: "FK_t_process_map_plan_oscillation_t_process_map_plan_oscillati~",
column: x => x.id_previous,
principalTable: "t_process_map_plan_oscillation",
principalColumn: "id");
table.ForeignKey(
name: "FK_t_process_map_plan_oscillation_t_user_id_author",
column: x => x.id_author,
principalTable: "t_user",
principalColumn: "id",
onDelete: ReferentialAction.Restrict);
table.ForeignKey(
name: "FK_t_process_map_plan_oscillation_t_user_id_editor",
column: x => x.id_editor,
principalTable: "t_user",
principalColumn: "id",
onDelete: ReferentialAction.Restrict);
table.ForeignKey(
name: "FK_t_process_map_plan_oscillation_t_well_id_well",
column: x => x.id_well,
principalTable: "t_well",
principalColumn: "id",
onDelete: ReferentialAction.Cascade);
table.ForeignKey(
name: "FK_t_process_map_plan_oscillation_t_well_section_type_id_wells~",
column: x => x.id_wellsection_type,
principalTable: "t_well_section_type",
principalColumn: "id",
onDelete: ReferentialAction.Cascade);
},
comment: "Осцилляция");
migrationBuilder.CreateTable(
name: "t_process_map_plan_positioning_off_the_bottom",
columns: table => new
{
id = table.Column(type: "integer", nullable: false, comment: "Идентификатор")
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
stop_off_the_bottom = table.Column(type: "double precision", nullable: false, comment: "Остановка над забоем, м."),
pressure_max = table.Column(type: "double precision", nullable: false, comment: "Максимально допустимое давление, атм."),
differential_pressure = table.Column(type: "double precision", nullable: false, comment: "Перепад давления уставка, атм."),
tight = table.Column(type: "double precision", nullable: false, comment: "Затяжка, т."),
slacking_off = table.Column(type: "double precision", nullable: false, comment: "Посадка, т."),
torque_max = table.Column(type: "double precision", nullable: false, comment: "Максимально допустимый момент, кН*м."),
rop_up = table.Column(type: "double precision", nullable: false, comment: "Скорость вверх, м/ч."),
rop_down = table.Column(type: "double precision", nullable: false, comment: "Скорость вниз, м/ч."),
rpm_up = table.Column(type: "double precision", nullable: false, comment: "Обороты вверх, об/мин."),
rpm_down = table.Column(type: "double precision", nullable: false, comment: "Обороты вниз, об/мин."),
flow_rate_up = table.Column(type: "double precision", nullable: false, comment: "Расход вверх, л/с."),
flow_rate_down = table.Column(type: "double precision", nullable: false, comment: "Расход вниз, л/с."),
note = table.Column(type: "character varying(1024)", maxLength: 1024, nullable: false, comment: "Примечание"),
id_author = table.Column(type: "integer", nullable: false, comment: "Автор"),
id_editor = table.Column(type: "integer", nullable: true, comment: "Редактор"),
creation = table.Column(type: "timestamp with time zone", nullable: false, comment: "дата создания"),
obsolete = table.Column(type: "timestamp with time zone", nullable: true, comment: "дата устаревания"),
id_state = table.Column(type: "integer", nullable: false, comment: "ИД состояния записи: \n0 - актуальная\n1 - замененная\n2 - удаленная"),
id_previous = table.Column(type: "integer", nullable: true, comment: "ИД состояния записи: \n0 - актуальная\n1 - замененная\n2 - удаленная"),
id_well = table.Column(type: "integer", nullable: false, comment: "Id скважины"),
id_wellsection_type = table.Column(type: "integer", nullable: false, comment: "Тип секции"),
depth_start = table.Column(type: "double precision", nullable: false, comment: "Глубина по стволу от, м"),
depth_end = table.Column(type: "double precision", nullable: false, comment: "Глубина по стволу до, м")
},
constraints: table =>
{
table.PrimaryKey("PK_t_process_map_plan_positioning_off_the_bottom", x => x.id);
table.ForeignKey(
name: "FK_t_process_map_plan_positioning_off_the_bottom_t_process_map~",
column: x => x.id_previous,
principalTable: "t_process_map_plan_positioning_off_the_bottom",
principalColumn: "id");
table.ForeignKey(
name: "FK_t_process_map_plan_positioning_off_the_bottom_t_user_id_aut~",
column: x => x.id_author,
principalTable: "t_user",
principalColumn: "id",
onDelete: ReferentialAction.Restrict);
table.ForeignKey(
name: "FK_t_process_map_plan_positioning_off_the_bottom_t_user_id_edi~",
column: x => x.id_editor,
principalTable: "t_user",
principalColumn: "id",
onDelete: ReferentialAction.Restrict);
table.ForeignKey(
name: "FK_t_process_map_plan_positioning_off_the_bottom_t_well_id_well",
column: x => x.id_well,
principalTable: "t_well",
principalColumn: "id",
onDelete: ReferentialAction.Cascade);
table.ForeignKey(
name: "FK_t_process_map_plan_positioning_off_the_bottom_t_well_sectio~",
column: x => x.id_wellsection_type,
principalTable: "t_well_section_type",
principalColumn: "id",
onDelete: ReferentialAction.Cascade);
},
comment: "Позиционирование над забоем");
migrationBuilder.CreateTable(
name: "t_process_map_plan_reaming_slide",
columns: table => new
{
id = table.Column(type: "integer", nullable: false, comment: "Идентификатор")
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
pressure_max = table.Column(type: "double precision", nullable: false, comment: "Максимально допустимое давление, атм."),
differential_pressure = table.Column(type: "double precision", nullable: false, comment: "Перепад давления уставка, атм."),
tight = table.Column(type: "double precision", nullable: false, comment: "Затяжка, т."),
slacking_off = table.Column(type: "double precision", nullable: false, comment: "Посадка, т."),
torque_max = table.Column(type: "double precision", nullable: false, comment: "Максимально допустимый момент, кН*м."),
reaming1_repetitions_count = table.Column(type: "double precision", nullable: false, comment: "Проработка 1. Количество повторений, шт."),
reaming1_rop_up = table.Column(type: "double precision", nullable: false, comment: "Проработка 1. Скорость вверх, м/ч."),
reaming1_rop_down = table.Column(type: "double precision", nullable: false, comment: "Проработка 1. Скорость вниз, м/ч."),
reaming1_rpm_up = table.Column(type: "double precision", nullable: false, comment: "Проработка 1, Обороты, об/мин., Вверх"),
reaming1_rpm_down = table.Column(type: "double precision", nullable: false, comment: "Проработка 1, Обороты, об/мин., Вниз"),
reaming1_flow_rate_up = table.Column(type: "double precision", nullable: false, comment: "Проработка 1, Расход, л/с., Вверх"),
reaming1_flow_rate_down = table.Column(type: "double precision", nullable: false, comment: "Проработка 1, Расход, л/с., Вниз"),
reaming1_interval = table.Column(type: "double precision", nullable: false, comment: "Проработка 1, Интервал проработки, м."),
reaming1_stop_point_off_bottom = table.Column(type: "double precision", nullable: false, comment: "Остановка над забоем, м."),
reaming2_repetitions_count = table.Column(type: "double precision", nullable: false, comment: "Проработка 2, Количество повторений, шт."),
reaming2_rop_up = table.Column(type: "double precision", nullable: false, comment: "Проработка 2, Скорость, м/ч., Вверх"),
reaming2_rop_down = table.Column(type: "double precision", nullable: false, comment: "Проработка 2, Скорость, м/ч., Вниз"),
reaming2_rpm_up = table.Column(type: "double precision", nullable: false, comment: "Проработка 2, Обороты, об/мин., Вверх"),
reaming2_rpm_down = table.Column(type: "double precision", nullable: false, comment: "Проработка 2, Обороты, об/мин., Вниз"),
reaming2_flow_rate_up = table.Column(type: "double precision", nullable: false, comment: "Проработка 2, Расход, л/с., Вверх"),
reaming2_flow_rate_down = table.Column(type: "double precision", nullable: false, comment: "Проработка 2, Расход, л/с., Вниз"),
reaming2_interval = table.Column(type: "double precision", nullable: false, comment: "Проработка 2, Интервал проработки, м."),
reaming2_stop_point_off_bottom = table.Column(type: "double precision", nullable: false, comment: "Остановка над забоем, м."),
reaming3_repetitions_count = table.Column(type: "double precision", nullable: false, comment: "Проработка 3, Количество повторений, шт."),
reaming3_rop_up = table.Column(type: "double precision", nullable: false, comment: "Проработка 3, Скорость, м/ч., Вверх"),
reaming3_rop_down = table.Column(type: "double precision", nullable: false, comment: "Проработка 3, Скорость, м/ч., Вниз"),
reaming3_rpm_up = table.Column(type: "double precision", nullable: false, comment: "Проработка 3, Обороты, об/мин., Вверх"),
reaming3_rpm_down = table.Column(type: "double precision", nullable: false, comment: "Проработка 3, Обороты, об/мин., Вниз"),
reaming3_flow_rate_up = table.Column(type: "double precision", nullable: false, comment: "Проработка 3, Расход, л/с., Вверх"),
reaming3_flow_rate_down = table.Column(type: "double precision", nullable: false, comment: "Проработка 3, Расход, л/с., Вниз"),
reaming3_interval = table.Column(type: "double precision", nullable: false, comment: "Проработка 3, Интервал проработки, м."),
reaming3_stop_point_off_bottom = table.Column(type: "double precision", nullable: false, comment: "Остановка над забоем, м."),
note = table.Column(type: "character varying(1024)", maxLength: 1024, nullable: false, comment: "Примечание"),
id_author = table.Column(type: "integer", nullable: false, comment: "Автор"),
id_editor = table.Column(type: "integer", nullable: true, comment: "Редактор"),
creation = table.Column(type: "timestamp with time zone", nullable: false, comment: "дата создания"),
obsolete = table.Column(type: "timestamp with time zone", nullable: true, comment: "дата устаревания"),
id_state = table.Column(type: "integer", nullable: false, comment: "ИД состояния записи: \n0 - актуальная\n1 - замененная\n2 - удаленная"),
id_previous = table.Column(type: "integer", nullable: true, comment: "ИД состояния записи: \n0 - актуальная\n1 - замененная\n2 - удаленная"),
id_well = table.Column(type: "integer", nullable: false, comment: "Id скважины"),
id_wellsection_type = table.Column(type: "integer", nullable: false, comment: "Тип секции"),
depth_start = table.Column(type: "double precision", nullable: false, comment: "Глубина по стволу от, м"),
depth_end = table.Column(type: "double precision", nullable: false, comment: "Глубина по стволу до, м")
},
constraints: table =>
{
table.PrimaryKey("PK_t_process_map_plan_reaming_slide", x => x.id);
table.ForeignKey(
name: "FK_t_process_map_plan_reaming_slide_t_process_map_plan_reaming~",
column: x => x.id_previous,
principalTable: "t_process_map_plan_reaming_slide",
principalColumn: "id");
table.ForeignKey(
name: "FK_t_process_map_plan_reaming_slide_t_user_id_author",
column: x => x.id_author,
principalTable: "t_user",
principalColumn: "id",
onDelete: ReferentialAction.Restrict);
table.ForeignKey(
name: "FK_t_process_map_plan_reaming_slide_t_user_id_editor",
column: x => x.id_editor,
principalTable: "t_user",
principalColumn: "id",
onDelete: ReferentialAction.Restrict);
table.ForeignKey(
name: "FK_t_process_map_plan_reaming_slide_t_well_id_well",
column: x => x.id_well,
principalTable: "t_well",
principalColumn: "id",
onDelete: ReferentialAction.Cascade);
table.ForeignKey(
name: "FK_t_process_map_plan_reaming_slide_t_well_section_type_id_wel~",
column: x => x.id_wellsection_type,
principalTable: "t_well_section_type",
principalColumn: "id",
onDelete: ReferentialAction.Cascade);
},
comment: "РТК проработка слайд");
migrationBuilder.CreateTable(
name: "t_process_map_plan_recording_static_measurement",
columns: table => new
{
id = table.Column(type: "integer", nullable: false, comment: "Идентификатор")
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
measurement_recording_time = table.Column(type: "double precision", nullable: false, comment: "Время записи замера, сек"),
note = table.Column(type: "character varying(1024)", maxLength: 1024, nullable: false, comment: "Примечание"),
id_author = table.Column(type: "integer", nullable: false, comment: "Автор"),
id_editor = table.Column(type: "integer", nullable: true, comment: "Редактор"),
creation = table.Column(type: "timestamp with time zone", nullable: false, comment: "дата создания"),
obsolete = table.Column(type: "timestamp with time zone", nullable: true, comment: "дата устаревания"),
id_state = table.Column(type: "integer", nullable: false, comment: "ИД состояния записи: \n0 - актуальная\n1 - замененная\n2 - удаленная"),
id_previous = table.Column(type: "integer", nullable: true, comment: "ИД состояния записи: \n0 - актуальная\n1 - замененная\n2 - удаленная"),
id_well = table.Column(type: "integer", nullable: false, comment: "Id скважины"),
id_wellsection_type = table.Column(type: "integer", nullable: false, comment: "Тип секции"),
depth_start = table.Column(type: "double precision", nullable: false, comment: "Глубина по стволу от, м"),
depth_end = table.Column(type: "double precision", nullable: false, comment: "Глубина по стволу до, м")
},
constraints: table =>
{
table.PrimaryKey("PK_t_process_map_plan_recording_static_measurement", x => x.id);
table.ForeignKey(
name: "FK_t_process_map_plan_recording_static_measurement_t_process_m~",
column: x => x.id_previous,
principalTable: "t_process_map_plan_recording_static_measurement",
principalColumn: "id");
table.ForeignKey(
name: "FK_t_process_map_plan_recording_static_measurement_t_user_id_a~",
column: x => x.id_author,
principalTable: "t_user",
principalColumn: "id",
onDelete: ReferentialAction.Restrict);
table.ForeignKey(
name: "FK_t_process_map_plan_recording_static_measurement_t_user_id_e~",
column: x => x.id_editor,
principalTable: "t_user",
principalColumn: "id",
onDelete: ReferentialAction.Restrict);
table.ForeignKey(
name: "FK_t_process_map_plan_recording_static_measurement_t_well_id_w~",
column: x => x.id_well,
principalTable: "t_well",
principalColumn: "id",
onDelete: ReferentialAction.Cascade);
table.ForeignKey(
name: "FK_t_process_map_plan_recording_static_measurement_t_well_sect~",
column: x => x.id_wellsection_type,
principalTable: "t_well_section_type",
principalColumn: "id",
onDelete: ReferentialAction.Cascade);
},
comment: "Запись статического замера");
migrationBuilder.CreateTable(
name: "t_process_map_plan_rotor_lowering_bit",
columns: table => new
{
id = table.Column(type: "integer", nullable: false, comment: "Идентификатор")
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
pressure_max = table.Column