2024-07-04 11:02:45 +05:00
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
2021-04-02 17:28:07 +05:00
|
|
|
|
using System;
|
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
2021-04-09 17:59:07 +05:00
|
|
|
|
using System.Text.Json.Serialization;
|
2021-04-02 17:28:07 +05:00
|
|
|
|
|
|
|
|
|
namespace AsbCloudDb.Model
|
|
|
|
|
{
|
2021-09-14 17:17:33 +05:00
|
|
|
|
[Table("t_telemetry_data_saub"), Comment("набор основных данных по SAUB")]
|
2021-09-17 16:24:01 +05:00
|
|
|
|
public partial class TelemetryDataSaub : ITelemetryData
|
2021-04-02 17:28:07 +05:00
|
|
|
|
{
|
|
|
|
|
[Column("id_telemetry")]
|
|
|
|
|
public int IdTelemetry { get; set; }
|
2021-10-31 17:01:48 +05:00
|
|
|
|
|
|
|
|
|
[Column("id_user"), Comment("Пользователь САУБ")]
|
|
|
|
|
public int? IdUser { get; set; }
|
|
|
|
|
|
2021-04-02 17:28:07 +05:00
|
|
|
|
[Column("date", TypeName = "timestamp with time zone"), Comment("'2021-10-19 18:23:54+05'")]
|
2022-04-01 17:55:44 +05:00
|
|
|
|
public DateTimeOffset DateTime { get; set; }
|
2021-04-23 10:21:25 +05:00
|
|
|
|
|
2021-10-31 17:01:48 +05:00
|
|
|
|
[Column("mode"), Comment("Режим САУБ")]
|
2023-11-10 14:29:44 +05:00
|
|
|
|
public short Mode { get; set; }
|
2021-04-23 10:21:25 +05:00
|
|
|
|
|
2021-10-31 17:01:48 +05:00
|
|
|
|
[Column("id_feed_regulator"), Comment("Текущий критерий бурения")]
|
|
|
|
|
public short? IdFeedRegulator { get; set; }
|
2021-04-23 10:21:25 +05:00
|
|
|
|
|
2021-10-31 17:01:48 +05:00
|
|
|
|
[Column("mse_state"), Comment("Текущее состояние работы MSE")]
|
|
|
|
|
public short? MseState { get; set; }
|
2021-04-23 10:21:25 +05:00
|
|
|
|
|
2021-04-02 17:28:07 +05:00
|
|
|
|
[Column("well_depth"), Comment("Глубина забоя")]
|
2023-11-10 14:29:44 +05:00
|
|
|
|
public float WellDepth { get; set; }
|
2021-10-31 17:01:48 +05:00
|
|
|
|
|
2021-04-02 17:28:07 +05:00
|
|
|
|
[Column("bit_depth"), Comment("Положение инструмента")]
|
2023-11-10 14:29:44 +05:00
|
|
|
|
public float BitDepth { get; set; }
|
2021-04-23 10:21:25 +05:00
|
|
|
|
|
2021-10-31 17:01:48 +05:00
|
|
|
|
[Column("block_position"), Comment("Высота талевого блока")]
|
2023-11-10 14:29:44 +05:00
|
|
|
|
public float BlockPosition { get; set; }
|
2021-04-23 10:21:25 +05:00
|
|
|
|
|
|
|
|
|
[Column("block_position_min"), Comment("Талевый блок. Мин положение")]
|
2021-10-31 17:01:48 +05:00
|
|
|
|
public float? BlockPositionMin { get; set; }
|
2021-04-23 10:21:25 +05:00
|
|
|
|
|
|
|
|
|
[Column("block_position_max"), Comment("Талевый блок. Макс положение")]
|
2021-10-31 17:01:48 +05:00
|
|
|
|
public float? BlockPositionMax { get; set; }
|
2021-04-23 10:21:25 +05:00
|
|
|
|
|
2021-04-02 17:28:07 +05:00
|
|
|
|
[Column("block_speed"), Comment("Скорость талевого блока")]
|
2021-10-31 17:01:48 +05:00
|
|
|
|
public float? BlockSpeed { get; set; }
|
|
|
|
|
|
2021-04-02 17:28:07 +05:00
|
|
|
|
[Column("block_speed_sp"), Comment("Скорости талевого блока. Задание")]
|
2021-10-31 17:01:48 +05:00
|
|
|
|
public float? BlockSpeedSp { get; set; }
|
2021-04-23 10:21:25 +05:00
|
|
|
|
|
|
|
|
|
[Column("block_speed_sp_rotor"), Comment("Талевый блок. Задание скорости для роторного бурения")]
|
2021-10-31 17:01:48 +05:00
|
|
|
|
public float? BlockSpeedSpRotor { get; set; }
|
2021-04-23 10:21:25 +05:00
|
|
|
|
|
|
|
|
|
[Column("block_speed_sp_slide"), Comment("Талевый блок. Задание скорости для режима слайда")]
|
2021-10-31 17:01:48 +05:00
|
|
|
|
public float? BlockSpeedSpSlide { get; set; }
|
2021-04-23 10:21:25 +05:00
|
|
|
|
|
|
|
|
|
[Column("block_speed_sp_develop"), Comment("Талевый блок. Задание скорости для проработки")]
|
2021-10-31 17:01:48 +05:00
|
|
|
|
public float? BlockSpeedSpDevelop { get; set; }
|
2021-04-23 10:21:25 +05:00
|
|
|
|
|
2021-04-02 17:28:07 +05:00
|
|
|
|
[Column("pressure"), Comment("Давление")]
|
2023-11-10 14:29:44 +05:00
|
|
|
|
public float Pressure { get; set; }
|
2021-10-31 17:01:48 +05:00
|
|
|
|
|
2021-04-02 17:28:07 +05:00
|
|
|
|
[Column("pressure_idle"), Comment("Давление. Холостой ход")]
|
2021-10-31 17:01:48 +05:00
|
|
|
|
public float? PressureIdle { get; set; }
|
|
|
|
|
|
2021-04-02 17:28:07 +05:00
|
|
|
|
[Column("pressure_sp"), Comment("Давление. Задание")]
|
2021-10-31 17:01:48 +05:00
|
|
|
|
public float? PressureSp { get; set; }
|
2021-04-23 10:21:25 +05:00
|
|
|
|
|
|
|
|
|
[Column("pressure_sp_rotor"), Comment("Давление. Задание для роторного бурения")]
|
2021-10-31 17:01:48 +05:00
|
|
|
|
public float? PressureSpRotor { get; set; }
|
2021-04-23 10:21:25 +05:00
|
|
|
|
|
|
|
|
|
[Column("pressure_sp_slide"), Comment("Давление. Задание для режима слайда")]
|
2021-10-31 17:01:48 +05:00
|
|
|
|
public float? PressureSpSlide { get; set; }
|
2021-04-23 10:21:25 +05:00
|
|
|
|
|
|
|
|
|
[Column("pressure_sp_develop"), Comment("Давление. Задание для проработки")]
|
2021-10-31 17:01:48 +05:00
|
|
|
|
public float? PressureSpDevelop { get; set; }
|
2021-04-23 10:21:25 +05:00
|
|
|
|
|
2021-04-02 17:28:07 +05:00
|
|
|
|
[Column("pressure_delta_limit_max"), Comment("Давление дифф. Аварийное макс.")]
|
2021-10-31 17:01:48 +05:00
|
|
|
|
public float? PressureDeltaLimitMax { get; set; }
|
|
|
|
|
|
2021-04-02 17:28:07 +05:00
|
|
|
|
[Column("axial_load"), Comment("Осевая нагрузка")]
|
2023-11-10 14:29:44 +05:00
|
|
|
|
public float AxialLoad { get; set; }
|
2021-10-31 17:01:48 +05:00
|
|
|
|
|
2021-04-02 17:28:07 +05:00
|
|
|
|
[Column("axial_load_sp"), Comment("Осевая нагрузка. Задание")]
|
2021-10-31 17:01:48 +05:00
|
|
|
|
public float? AxialLoadSp { get; set; }
|
|
|
|
|
|
2021-04-02 17:28:07 +05:00
|
|
|
|
[Column("axial_load_limit_max"), Comment("Осевая нагрузка. Аварийная макс.")]
|
2021-10-31 17:01:48 +05:00
|
|
|
|
public float? AxialLoadLimitMax { get; set; }
|
|
|
|
|
|
2021-04-02 17:28:07 +05:00
|
|
|
|
[Column("hook_weight"), Comment("Вес на крюке")]
|
2023-11-10 14:29:44 +05:00
|
|
|
|
public float HookWeight { get; set; }
|
2021-10-31 17:01:48 +05:00
|
|
|
|
|
2021-04-02 17:28:07 +05:00
|
|
|
|
[Column("hook_weight_idle"), Comment("Вес на крюке. Холостой ход")]
|
2021-10-31 17:01:48 +05:00
|
|
|
|
public float? HookWeightIdle { get; set; }
|
|
|
|
|
|
2021-04-02 17:28:07 +05:00
|
|
|
|
[Column("hook_weight_limit_min"), Comment("Вес на крюке. Посадка")]
|
2021-10-31 17:01:48 +05:00
|
|
|
|
public float? HookWeightLimitMin { get; set; }
|
|
|
|
|
|
2021-04-02 17:28:07 +05:00
|
|
|
|
[Column("hook_weight_limit_max"), Comment("Вес на крюке. Затяжка")]
|
2021-10-31 17:01:48 +05:00
|
|
|
|
public float? HookWeightLimitMax { get; set; }
|
|
|
|
|
|
2021-04-02 17:28:07 +05:00
|
|
|
|
[Column("rotor_torque"), Comment("Момент на роторе")]
|
2023-11-10 14:29:44 +05:00
|
|
|
|
public float RotorTorque { get; set; }
|
2021-10-31 17:01:48 +05:00
|
|
|
|
|
2021-04-02 17:28:07 +05:00
|
|
|
|
[Column("rotor_torque_idle"), Comment("Момент на роторе. Холостой ход")]
|
2021-10-31 17:01:48 +05:00
|
|
|
|
public float? RotorTorqueIdle { get; set; }
|
|
|
|
|
|
2021-04-02 17:28:07 +05:00
|
|
|
|
[Column("rotor_torque_sp"), Comment("Момент на роторе. Задание")]
|
2021-10-31 17:01:48 +05:00
|
|
|
|
public float? RotorTorqueSp { get; set; }
|
|
|
|
|
|
2021-04-02 17:28:07 +05:00
|
|
|
|
[Column("rotor_torque_limit_max"), Comment("Момент на роторе. Аварийный макс.")]
|
2021-10-31 17:01:48 +05:00
|
|
|
|
public float? RotorTorqueLimitMax { get; set; }
|
|
|
|
|
|
2021-04-02 17:28:07 +05:00
|
|
|
|
[Column("rotor_speed"), Comment("Обороты ротора")]
|
2023-11-10 14:29:44 +05:00
|
|
|
|
public float RotorSpeed { get; set; }
|
2021-10-31 17:01:48 +05:00
|
|
|
|
|
2021-04-02 17:28:07 +05:00
|
|
|
|
[Column("flow"), Comment("Расход")]
|
2021-10-31 17:01:48 +05:00
|
|
|
|
public float? Flow { get; set; }
|
|
|
|
|
|
2021-04-02 17:28:07 +05:00
|
|
|
|
[Column("flow_idle"), Comment("Расход. Холостой ход")]
|
2021-10-31 17:01:48 +05:00
|
|
|
|
public float? FlowIdle { get; set; }
|
|
|
|
|
|
2021-04-02 17:28:07 +05:00
|
|
|
|
[Column("flow_delta_limit_max"), Comment("Расход. Аварийный макс.")]
|
2021-10-31 17:01:48 +05:00
|
|
|
|
public float? FlowDeltaLimitMax { get; set; }
|
|
|
|
|
|
2022-03-10 17:18:30 +05:00
|
|
|
|
[Column("mse"), Comment("MSE")]
|
|
|
|
|
public float? Mse { get; set; }
|
2021-04-02 17:28:07 +05:00
|
|
|
|
|
2023-04-14 13:45:16 +05:00
|
|
|
|
[Column("pump0_flow"), Comment("Расход. Буровой насос 1")]
|
2023-04-14 11:47:49 +05:00
|
|
|
|
public float? Pump0Flow { get; set; }
|
|
|
|
|
|
2023-04-14 13:45:16 +05:00
|
|
|
|
[Column("pump1_flow"), Comment("Расход. Буровой насос 2")]
|
2023-04-14 11:47:49 +05:00
|
|
|
|
public float? Pump1Flow { get; set; }
|
|
|
|
|
|
2023-04-14 13:45:16 +05:00
|
|
|
|
[Column("pump2_flow"), Comment("Расход. Буровой насос 3")]
|
2023-04-14 11:47:49 +05:00
|
|
|
|
public float? Pump2Flow { get; set; }
|
|
|
|
|
|
2021-04-09 17:59:07 +05:00
|
|
|
|
[JsonIgnore]
|
2021-04-02 17:28:07 +05:00
|
|
|
|
[ForeignKey(nameof(IdTelemetry))]
|
2021-09-14 17:17:33 +05:00
|
|
|
|
[InverseProperty(nameof(Model.Telemetry.DataSaub))]
|
2023-02-20 15:06:26 +05:00
|
|
|
|
public virtual Telemetry Telemetry { get; set; } = null!;
|
2021-04-02 17:28:07 +05:00
|
|
|
|
}
|
|
|
|
|
}
|