2021-10-10 13:35:43 +05:00
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
|
using System.Text.Json.Serialization;
|
|
|
|
|
|
|
|
|
|
namespace AsbCloudDb.Model
|
|
|
|
|
{
|
|
|
|
|
[Table("t_drill_params"), Comment("Режим бурения в секции (диапазоны параметров бурения)")]
|
|
|
|
|
public class DrillParams : IId
|
|
|
|
|
{
|
|
|
|
|
[Key]
|
|
|
|
|
[Column("id")]
|
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
|
|
|
|
|
[Column("well_id"), Comment("Id скважины")]
|
|
|
|
|
public int IdWell { get; set; }
|
2021-10-11 15:21:26 +05:00
|
|
|
|
|
|
|
|
|
[Column("depth_start"), Comment("Стартовая глубина")]
|
|
|
|
|
public double DepthStart { get; set; }
|
|
|
|
|
|
|
|
|
|
[Column("depth_end"), Comment("Глубина окончания интервала")]
|
|
|
|
|
public double DepthEnd { get; set; }
|
2021-10-10 13:35:43 +05:00
|
|
|
|
|
2021-10-11 15:21:26 +05:00
|
|
|
|
[Column("id_wellsection_type"), Comment("Id с типом секции скважины")]
|
2021-10-10 13:35:43 +05:00
|
|
|
|
public int IdWellSectionType { get; set; }
|
|
|
|
|
|
|
|
|
|
[Column("axial_load_min"), Comment("Минимальная нагрузка")]
|
|
|
|
|
public double AxialLoadMin { get; set; }
|
|
|
|
|
|
|
|
|
|
[Column("axial_load_avg"), Comment("Средняя нагрузка")]
|
|
|
|
|
public double AxialLoadAvg { get; set; }
|
|
|
|
|
|
|
|
|
|
[Column("axial_load_max"), Comment("Максимальная нагрузка")]
|
|
|
|
|
public double AxialLoadMax { get; set; }
|
|
|
|
|
|
|
|
|
|
[Column("pressure_min"), Comment("Минимальное давление")]
|
|
|
|
|
public double PressureMin { get; set; }
|
|
|
|
|
|
|
|
|
|
[Column("pressure_avg"), Comment("Среднее давление")]
|
|
|
|
|
public double PressureAvg { get; set; }
|
|
|
|
|
|
|
|
|
|
[Column("pressure_max"), Comment("Максимальное давление")]
|
|
|
|
|
public double PressureMax { get; set; }
|
|
|
|
|
|
2021-10-11 16:39:40 +05:00
|
|
|
|
[Column("rotor_torque_min"), Comment("Минимальный момент на ВСП")]
|
|
|
|
|
public double RotorTorqueMin { get; set; }
|
2021-10-10 13:35:43 +05:00
|
|
|
|
|
2021-10-11 16:39:40 +05:00
|
|
|
|
[Column("rotor_torque_avg"), Comment("Средний момент на ВСП")]
|
|
|
|
|
public double RotorTorqueAvg { get; set; }
|
2021-10-10 13:35:43 +05:00
|
|
|
|
|
2021-10-11 16:39:40 +05:00
|
|
|
|
[Column("rotor_torque_max"), Comment("Максимальный момент на ВСП")]
|
|
|
|
|
public double RotorTorqueMax { get; set; }
|
2021-10-10 13:35:43 +05:00
|
|
|
|
|
2021-10-11 16:39:40 +05:00
|
|
|
|
[Column("rotor_speed_min"), Comment("Минимальные обороты на ВСП")]
|
|
|
|
|
public double RotorSpeedMin { get; set; }
|
2021-10-10 13:35:43 +05:00
|
|
|
|
|
2021-10-11 16:39:40 +05:00
|
|
|
|
[Column("rotor_speed_avg"), Comment("Средние обороты на ВСП")]
|
|
|
|
|
public double RotorSpeedAvg { get; set; }
|
2021-10-10 13:35:43 +05:00
|
|
|
|
|
2021-10-11 16:39:40 +05:00
|
|
|
|
[Column("rotor_speed_max"), Comment("Максимальные обороты на ВСП")]
|
|
|
|
|
public double RotorSpeedMax { get; set; }
|
2021-10-10 13:35:43 +05:00
|
|
|
|
|
2021-10-11 16:20:07 +05:00
|
|
|
|
[Column("flow_min"), Comment("Минимальный расход")]
|
|
|
|
|
public double FlowMin { get; set; }
|
2021-10-10 13:35:43 +05:00
|
|
|
|
|
2021-10-11 16:20:07 +05:00
|
|
|
|
[Column("flow_avg"), Comment("Средний расход")]
|
|
|
|
|
public double FlowAvg { get; set; }
|
2021-10-10 13:35:43 +05:00
|
|
|
|
|
2021-10-11 16:20:07 +05:00
|
|
|
|
[Column("flow_max"), Comment("Максимальный расход")]
|
|
|
|
|
public double FlowMax { get; set; }
|
2021-10-10 13:35:43 +05:00
|
|
|
|
|
|
|
|
|
[JsonIgnore]
|
|
|
|
|
[ForeignKey(nameof(IdWell))]
|
|
|
|
|
public virtual Well Well { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonIgnore]
|
|
|
|
|
[ForeignKey(nameof(IdWellSectionType))]
|
|
|
|
|
public virtual WellSectionType WellSectionType { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|