forked from ddrilling/AsbCloudServer
56 lines
1.8 KiB
C#
56 lines
1.8 KiB
C#
using Microsoft.EntityFrameworkCore;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System;
|
|
using System.Text.Json.Serialization;
|
|
using System.Collections.Generic;
|
|
|
|
#nullable disable
|
|
|
|
namespace AsbCloudDb.Model.Analytics
|
|
{
|
|
|
|
[Table("t_well_drilling_stat"), Comment("статистика бурения скважины")]
|
|
public class WellDrillingStat
|
|
{
|
|
[Key]
|
|
[Column("id")]
|
|
public int Id { get; set; }
|
|
|
|
[Column("id_well")]
|
|
public int IdWell { get; set; }
|
|
|
|
[JsonIgnore]
|
|
[ForeignKey(nameof(IdWell))]
|
|
[InverseProperty(nameof(Model.Well.WellDrillingStat))]
|
|
public virtual Well Well { get; set; }
|
|
|
|
[Column("plan_start", TypeName = "timestamp with time zone")]
|
|
public DateTime PlanStart { get; set; }
|
|
|
|
[Column("plan_end", TypeName = "timestamp with time zone")]
|
|
public DateTime PlanEnd { get; set; }
|
|
|
|
[Column("fact_start", TypeName = "timestamp with time zone")]
|
|
public DateTime FactStart { get; set; }
|
|
|
|
[Column("fact_end", TypeName = "timestamp with time zone")]
|
|
public DateTime FactEnd { get; set; }
|
|
|
|
[Column("un_productive_time_days"), Comment("НПВ, сут")]
|
|
public double UnProductiveDays { 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; }
|
|
}
|
|
}
|