DD.WellWorkover.Cloud/AsbCloudDb/Model/ProcessMap.cs

85 lines
3.5 KiB
C#
Raw Normal View History

2022-12-05 12:39:25 +05:00
using Microsoft.EntityFrameworkCore;
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
2022-12-06 10:41:13 +05:00
using System.Text.Json.Serialization;
2022-12-05 12:39:25 +05:00
namespace AsbCloudDb.Model
{
[Table("t_process_map"), Comment("Операции по скважине РТК")]
public class ProcessMap : IId, IWellRelated
{
[Key]
[Column("id")]
public int Id { get; set; }
[Column("well_id"), Comment("Id скважины")]
public int IdWell { get; set; }
2022-12-07 08:47:41 +05:00
[Column("id_user"), Comment("Id пользователя")]
public int IdUser { get; set; }
2023-03-21 12:34:43 +05:00
[Column("id_mode"), Comment("Id режима (1- ротор, 2 слайд)")]
public int IdMode { get; set; }
2022-12-06 10:41:13 +05:00
[Column("id_wellsection_type"), Comment("Тип секции")]
public int IdWellSectionType { get; set; }
2022-12-05 12:39:25 +05:00
[Column("last_update", TypeName = "timestamp with time zone"), Comment("Дата последнего изменения")]
public DateTimeOffset LastUpdate { get; set; }
[Column("depth_start"), Comment("Стартовая глубина")]
public double DepthStart { get; set; }
[Column("depth_end"), Comment("Глубина окончания интервала")]
public double DepthEnd { get; set; }
[Column("axial_load_plan"), Comment("Нагрузка, план")]
public double AxialLoadPlan { get; set; }
2023-03-21 12:34:43 +05:00
[Column("axial_load_limit_max"), Comment("Нагрузка, допустимый максимум")]
public double AxialLoadLimitMax { get; set; }
2022-12-05 12:39:25 +05:00
[Column("pressure_plan"), Comment("Перепад давления, план")]
public double PressurePlan { get; set; }
2023-03-21 12:34:43 +05:00
[Column("pressure_limit_max"), Comment("Перепад давления, допустимый максимум")]
public double PressureLimitMax { get; set; }
2022-12-05 12:39:25 +05:00
2022-12-06 10:41:13 +05:00
[Column("top_drive_torque_plan"), Comment("Момент на ВСП, план")]
public double TopDriveTorquePlan { get; set; }
2022-12-05 12:39:25 +05:00
2023-03-21 12:34:43 +05:00
[Column("top_drive_torque_limit_max"), Comment("Момент на ВСП, допустимый максимум")]
public double TopDriveTorqueLimitMax { get; set; }
2022-12-05 12:39:25 +05:00
2022-12-06 10:41:13 +05:00
[Column("top_drive_speed_plan"), Comment("Обороты на ВСП, план")]
public double TopDriveSpeedPlan { get; set; }
2022-12-05 12:39:25 +05:00
2023-03-21 12:34:43 +05:00
[Column("top_drive_speed_limit_max"), Comment("Обороты на ВСП, допустимый максимум")]
public double TopDriveSpeedLimitMax { get; set; }
2022-12-05 12:39:25 +05:00
[Column("flow_plan"), Comment("Расход, план")]
public double FlowPlan { get; set; }
2023-03-21 12:34:43 +05:00
[Column("flow_limit_max"), Comment("Расход, допустимый максимум")]
public double FlowLimitMax { get; set; }
2022-12-05 12:39:25 +05:00
2022-12-06 10:41:13 +05:00
[Column("rop_plan"), Comment("Плановая механическая скорость, м/ч")]
public double RopPlan { get; set; }
2023-03-21 17:51:34 +05:00
[Column("usage_saub"), Comment("Плановый процент использования АКБ")]
public double UsageSaub { get; set; }
[Column("usage_spin"), Comment("Плановый процент использования spin master")]
public double UsageSpin { get; set; }
2022-12-06 10:41:13 +05:00
[JsonIgnore]
[ForeignKey(nameof(IdWell))]
2022-12-07 10:52:35 +05:00
public virtual Well Well { get; set; } = null!;
2022-12-06 10:41:13 +05:00
[JsonIgnore]
[ForeignKey(nameof(IdWellSectionType))]
2022-12-07 10:52:35 +05:00
public virtual WellSectionType WellSectionType { get; set; } = null!;
2022-12-05 12:39:25 +05:00
}
}