2021-07-21 12:30:51 +05:00
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
|
using System.Text.Json.Serialization;
|
|
|
|
|
#nullable disable
|
|
|
|
|
|
2021-07-21 15:22:58 +05:00
|
|
|
|
namespace AsbCloudDb.Model
|
2021-07-21 12:30:51 +05:00
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
[Table("t_well_section"), Comment("секция скважины")]
|
|
|
|
|
public class WellSection
|
|
|
|
|
{
|
|
|
|
|
[Key]
|
|
|
|
|
[Column("id")]
|
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
|
|
|
|
|
[Column("id_well_section_type")]
|
|
|
|
|
public int IdWellSectionType { get; set; }
|
|
|
|
|
|
|
|
|
|
[Column("id_well")]
|
2021-07-21 15:29:19 +05:00
|
|
|
|
public int IdWell { get; set; }
|
2021-07-21 12:30:51 +05:00
|
|
|
|
|
|
|
|
|
[Column("well_depth_plan"), Comment("глубина план")]
|
|
|
|
|
public double WellDepthPlan { get; set; }
|
|
|
|
|
|
|
|
|
|
[Column("well_depth_fact"), Comment("глубина факт")]
|
|
|
|
|
public double WellDepthFact { get; set; }
|
|
|
|
|
|
|
|
|
|
[Column("build_days_plan"), Comment("период план")]
|
|
|
|
|
public double BuildDaysPlan { get; set; }
|
|
|
|
|
|
|
|
|
|
[Column("build_days_fact"), Comment("период факт")]
|
|
|
|
|
public double BuildDaysFact { get; set; }
|
|
|
|
|
|
|
|
|
|
[Column("rate_of_penetration_plan"), Comment("Механическая скорость проходки план")]
|
|
|
|
|
public double RateOfPenetrationPlan { get; set; }
|
|
|
|
|
|
|
|
|
|
[Column("rate_of_penetration_fact"), Comment("Механическая скорость проходки факт")]
|
|
|
|
|
public double RateOfPenetrationFact { get; set; }
|
|
|
|
|
|
|
|
|
|
[Column("route_speed_plan"), Comment("Рейсовая скорость план")]
|
|
|
|
|
public double RouteSpeedPlan { get; set; }
|
|
|
|
|
|
|
|
|
|
[Column("route_speed_fact"), Comment("Рейсовая скорость факт")]
|
|
|
|
|
public double RouteSpeedFact { get; set; }
|
|
|
|
|
|
|
|
|
|
[Column("bha_down_speed_plan"), Comment("Скорость спуска КНБК план")]
|
|
|
|
|
public double BhaDownSpeedPlan { get; set; }
|
|
|
|
|
|
|
|
|
|
[Column("bha_down_speed_fact"), Comment("Скорость спуска КНБК факт")]
|
|
|
|
|
public double BhaDownSpeedFact { get; set; }
|
|
|
|
|
|
|
|
|
|
[Column("bha_up_speed_plan"), Comment("Скорость подъема КНБК план")]
|
|
|
|
|
public double BhaUpSpeedPlan { get; set; }
|
|
|
|
|
|
|
|
|
|
[Column("bha_up_speed_fact"), Comment("Скорость подъема КНБК факт")]
|
|
|
|
|
public double BhaUpSpeedFact { get; set; }
|
|
|
|
|
|
|
|
|
|
[Column("casing_down_speed_plan"), Comment("Скорость спуска ОК план")]
|
|
|
|
|
public double CasingDownSpeedPlan { get; set; }
|
|
|
|
|
|
|
|
|
|
[Column("casing_down_speed_fact"), Comment("Скорость спуска ОК факт")]
|
|
|
|
|
public double CasingDownSpeedFact { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonIgnore]
|
|
|
|
|
[ForeignKey(nameof(IdWell))]
|
2021-07-21 15:22:58 +05:00
|
|
|
|
[InverseProperty(nameof(Model.Well.Sections))]
|
2021-07-21 12:30:51 +05:00
|
|
|
|
public virtual Well Well { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonIgnore]
|
|
|
|
|
[ForeignKey(nameof(IdWellSectionType))]
|
2021-07-21 15:22:58 +05:00
|
|
|
|
[InverseProperty(nameof(Model.WellSectionType.WellSections))]
|
2021-07-21 12:30:51 +05:00
|
|
|
|
public virtual WellSectionType WellSectionType { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|