using System; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using Microsoft.EntityFrameworkCore; namespace AsbCloudDb.Model; [Table("t_process_map_wellbore_development"), Comment("Проработка скважины")] public class ProcessMapWellboreDevelopment : IId, IWellRelated { [Key] [Column("id")] public int Id { get; set; } [Column("id_well"), Comment("Id скважины")] public int IdWell { get; set; } [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("repeats"), Comment("Количество повторений")] public double Repeats { get; set; } [Column("spin_upward"), Comment("Вращение при движении вверх, об/мин")] public double SpinUpward { get; set; } [Column("spin_downward"), Comment("Вращение при движении вниз, об/мин")] public double SpinDownward { get; set; } [Column("speed_upward"), Comment("Скорость подъёма, м/ч")] public double SpeedUpward { get; set; } [Column("speed_downward"), Comment("Скорость спуска, м/ч")] public double SpeedDownward { get; set; } [Column("setpoint_drags"), Comment("Уставка зятяжки, т")] public double SetpointDrags { get; set; } [Column("setpoint_tights"), Comment("Уставка посадки, т")] public double SetpointTights { get; set; } [Column("pressure"), Comment("Давление")] public double Pressure { get; set; } [Column("torque"), Comment("Момент, кН м")] public double Torque { get; set; } [Column("comment"), Comment("Комментарий")] public string? Comment { get; set; } [ForeignKey(nameof(IdWell))] public virtual Well Well { get; set; } = null!; }