2021-04-02 17:28:07 +05:00
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
using System;
|
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
#nullable disable
|
|
|
|
|
|
|
|
|
|
namespace AsbCloudDb.Model
|
|
|
|
|
{
|
|
|
|
|
[Table("t_data_saub_base"), Comment("набор основных данных по SAUB")]
|
2021-04-09 17:59:07 +05:00
|
|
|
|
public partial class DataSaubBase : IId
|
2021-04-02 17:28:07 +05:00
|
|
|
|
{
|
|
|
|
|
[Key]
|
|
|
|
|
[Column("id")]
|
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
[Column("id_telemetry")]
|
|
|
|
|
public int IdTelemetry { get; set; }
|
|
|
|
|
[Column("date", TypeName = "timestamp with time zone"), Comment("'2021-10-19 18:23:54+05'")]
|
|
|
|
|
public DateTime Date { get; set; }
|
|
|
|
|
[Column("mode"), Comment("Режим САУБ")]
|
|
|
|
|
public int? Mode { get; set; }
|
|
|
|
|
[Column("well_depth"), Comment("Глубина забоя")]
|
|
|
|
|
public double? WellDepth { get; set; }
|
|
|
|
|
[Column("bit_depth"), Comment("Положение инструмента")]
|
|
|
|
|
public double? BitDepth { get; set; }
|
|
|
|
|
[Column("block_height"), Comment("Высота талевого блока")]
|
|
|
|
|
public double? BlockHeight { get; set; }
|
|
|
|
|
[Column("block_speed"), Comment("Скорость талевого блока")]
|
|
|
|
|
public double? BlockSpeed { get; set; }
|
|
|
|
|
[Column("block_speed_sp"), Comment("Скорости талевого блока. Задание")]
|
|
|
|
|
public double? BlockSpeedSp { get; set; }
|
|
|
|
|
[Column("pressure"), Comment("Давление")]
|
|
|
|
|
public double? Pressure { get; set; }
|
|
|
|
|
[Column("pressure_idle"), Comment("Давление. Холостой ход")]
|
|
|
|
|
public double? PressureIdle { get; set; }
|
|
|
|
|
[Column("pressure_sp"), Comment("Давление. Задание")]
|
|
|
|
|
public double? PressureSp { get; set; }
|
|
|
|
|
[Column("pressure_delta_limit_max"), Comment("Давление дифф. Аварийное макс.")]
|
|
|
|
|
public double? PressureDeltaLimitMax { get; set; }
|
|
|
|
|
[Column("axial_load"), Comment("Осевая нагрузка")]
|
|
|
|
|
public double? AxialLoad { get; set; }
|
|
|
|
|
[Column("axial_load_sp"), Comment("Осевая нагрузка. Задание")]
|
|
|
|
|
public double? AxialLoadSp { get; set; }
|
|
|
|
|
[Column("axial_load_limit_max"), Comment("Осевая нагрузка. Аварийная макс.")]
|
|
|
|
|
public double? AxialLoadLimitMax { get; set; }
|
|
|
|
|
[Column("hook_weight"), Comment("Вес на крюке")]
|
|
|
|
|
public double? HookWeight { get; set; }
|
|
|
|
|
[Column("hook_weight_idle"), Comment("Вес на крюке. Холостой ход")]
|
|
|
|
|
public double? HookWeightIdle { get; set; }
|
|
|
|
|
[Column("hook_weight_limit_min"), Comment("Вес на крюке. Посадка")]
|
|
|
|
|
public double? HookWeightLimitMin { get; set; }
|
|
|
|
|
[Column("hook_weight_limit_max"), Comment("Вес на крюке. Затяжка")]
|
|
|
|
|
public double? HookWeightLimitMax { get; set; }
|
|
|
|
|
[Column("rotor_torque"), Comment("Момент на роторе")]
|
|
|
|
|
public double? RotorTorque { get; set; }
|
|
|
|
|
[Column("rotor_torque_idle"), Comment("Момент на роторе. Холостой ход")]
|
|
|
|
|
public double? RotorTorqueIdle { get; set; }
|
|
|
|
|
[Column("rotor_torque_sp"), Comment("Момент на роторе. Задание")]
|
|
|
|
|
public double? RotorTorqueSp { get; set; }
|
|
|
|
|
[Column("rotor_torque_limit_max"), Comment("Момент на роторе. Аварийный макс.")]
|
|
|
|
|
public double? RotorTorqueLimitMax { get; set; }
|
|
|
|
|
[Column("rotor_speed"), Comment("Обороты ротора")]
|
|
|
|
|
public double? RotorSpeed { get; set; }
|
|
|
|
|
[Column("flow"), Comment("Расход")]
|
|
|
|
|
public double? Flow { get; set; }
|
|
|
|
|
[Column("flow_idle"), Comment("Расход. Холостой ход")]
|
|
|
|
|
public double? FlowIdle { get; set; }
|
|
|
|
|
[Column("flow_delta_limit_max"), Comment("Расход. Аварийный макс.")]
|
|
|
|
|
public double? FlowDeltaLimitMax { get; set; }
|
|
|
|
|
|
2021-04-09 17:59:07 +05:00
|
|
|
|
[JsonIgnore]
|
2021-04-02 17:28:07 +05:00
|
|
|
|
[ForeignKey(nameof(IdTelemetry))]
|
|
|
|
|
[InverseProperty(nameof(Model.Telemetry.DataSaubBases))]
|
|
|
|
|
public virtual Telemetry Telemetry { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|