2021-10-13 17:34:32 +05:00
|
|
|
using System;
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
using System.Text.Json.Serialization;
|
|
|
|
|
|
|
|
namespace AsbCloudDb.Model
|
|
|
|
{
|
2022-01-05 17:50:45 +05:00
|
|
|
[Table("t_drill_flow_chart"), Comment("Параметры коридоров бурения (диапазоны параметров бурения)")]
|
2021-10-14 10:18:43 +05:00
|
|
|
public class DrillFlowChart : IId
|
2021-10-13 17:34:32 +05:00
|
|
|
{
|
|
|
|
[Key]
|
|
|
|
[Column("id")]
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
|
|
|
[Column("well_id"), Comment("Id скважины")]
|
|
|
|
public int IdWell { get; set; }
|
|
|
|
|
2021-10-14 17:02:20 +05:00
|
|
|
[Column("id_operation_category"), Comment("Id типа операции")]
|
|
|
|
public int IdWellOperationCategory { get; set; }
|
|
|
|
|
2021-12-27 10:53:18 +05:00
|
|
|
[Column("last_update", TypeName = "timestamp with time zone"), Comment("Дата последнего изменения")]
|
2021-12-30 10:45:06 +05:00
|
|
|
public DateTimeOffset LastUpdate { get; set; }
|
2021-10-13 17:34:32 +05:00
|
|
|
|
|
|
|
[Column("depth_start"), Comment("Стартовая глубина")]
|
|
|
|
public double DepthStart { get; set; }
|
|
|
|
|
|
|
|
[Column("depth_end"), Comment("Глубина окончания интервала")]
|
|
|
|
public double DepthEnd { get; set; }
|
|
|
|
|
|
|
|
[Column("axial_load_min"), Comment("Минимальная нагрузка")]
|
|
|
|
public double AxialLoadMin { get; set; }
|
|
|
|
|
|
|
|
[Column("axial_load_max"), Comment("Максимальная нагрузка")]
|
|
|
|
public double AxialLoadMax { get; set; }
|
|
|
|
|
|
|
|
[Column("pressure_min"), Comment("Минимальное давление")]
|
|
|
|
public double PressureMin { get; set; }
|
|
|
|
|
|
|
|
[Column("pressure_max"), Comment("Максимальное давление")]
|
|
|
|
public double PressureMax { get; set; }
|
|
|
|
|
|
|
|
[Column("rotor_torque_min"), Comment("Минимальный момент на ВСП")]
|
|
|
|
public double RotorTorqueMin { get; set; }
|
|
|
|
|
|
|
|
[Column("rotor_torque_max"), Comment("Максимальный момент на ВСП")]
|
|
|
|
public double RotorTorqueMax { get; set; }
|
|
|
|
|
|
|
|
[Column("rotor_speed_min"), Comment("Минимальные обороты на ВСП")]
|
|
|
|
public double RotorSpeedMin { get; set; }
|
|
|
|
|
|
|
|
[Column("rotor_speed_max"), Comment("Максимальные обороты на ВСП")]
|
|
|
|
public double RotorSpeedMax { get; set; }
|
|
|
|
|
|
|
|
[Column("flow_min"), Comment("Минимальный расход")]
|
|
|
|
public double FlowMin { get; set; }
|
|
|
|
|
|
|
|
[Column("flow_max"), Comment("Максимальный расход")]
|
|
|
|
public double FlowMax { get; set; }
|
|
|
|
|
|
|
|
[JsonIgnore]
|
|
|
|
[ForeignKey(nameof(IdWell))]
|
|
|
|
public virtual Well Well { get; set; }
|
|
|
|
}
|
|
|
|
}
|