2024-07-04 11:02:45 +05:00
|
|
|
using Microsoft.EntityFrameworkCore;
|
2022-12-22 18:08:58 +05:00
|
|
|
using System;
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
|
2023-11-21 15:10:22 +05:00
|
|
|
namespace AsbCloudDb.Model.Trajectory
|
2022-12-22 18:08:58 +05:00
|
|
|
{
|
2023-11-28 15:54:47 +05:00
|
|
|
public abstract class Trajectory : IId, IWellRelated
|
2022-12-22 18:08:58 +05:00
|
|
|
{
|
|
|
|
[Column("id"), Key]
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
|
|
|
[Column("id_user"), Comment("ID пользователя который внес/изменил запись")]
|
|
|
|
public int IdUser { get; set; }
|
|
|
|
|
|
|
|
[Column("id_well"), Comment("ID скважины")]
|
|
|
|
public int IdWell { get; set; }
|
|
|
|
|
2022-12-26 15:49:44 +05:00
|
|
|
[Column("update_date"), Comment("Дата загрузки траектории")]
|
|
|
|
public DateTimeOffset UpdateDate { get; set; }
|
2022-12-22 18:08:58 +05:00
|
|
|
|
|
|
|
[Column("wellbore_depth"), Comment("Глубина по стволу")]
|
2022-12-26 21:50:33 +05:00
|
|
|
public double WellboreDepth { get; set; }
|
2022-12-22 18:08:58 +05:00
|
|
|
|
|
|
|
[Column("zenith_angle"), Comment("Угол зенитный")]
|
2022-12-26 21:50:33 +05:00
|
|
|
public double ZenithAngle { get; set; }
|
2022-12-22 18:08:58 +05:00
|
|
|
|
|
|
|
[Column("azimuth_geo"), Comment("Азимут Географ.")]
|
2022-12-26 21:50:33 +05:00
|
|
|
public double AzimuthGeo { get; set; }
|
2022-12-22 18:08:58 +05:00
|
|
|
|
|
|
|
[Column("azimuth_magnetic"), Comment("Азимут Магнитный")]
|
2022-12-26 21:50:33 +05:00
|
|
|
public double AzimuthMagnetic { get; set; }
|
2022-12-22 18:08:58 +05:00
|
|
|
|
|
|
|
[Column("vertical_depth"), Comment("Глубина вертикальная")]
|
2022-12-26 21:50:33 +05:00
|
|
|
public double VerticalDepth { get; set; }
|
2022-12-22 18:08:58 +05:00
|
|
|
|
|
|
|
[Column("comment"), Comment("Комментарии")]
|
2022-12-26 15:49:44 +05:00
|
|
|
public string? Comment { get; set; }
|
2022-12-22 18:08:58 +05:00
|
|
|
|
|
|
|
[ForeignKey(nameof(IdWell))]
|
2022-12-26 15:49:44 +05:00
|
|
|
public virtual Well Well { get; set; } = null!;
|
2022-12-22 18:08:58 +05:00
|
|
|
|
|
|
|
[ForeignKey(nameof(IdUser))]
|
2022-12-26 15:49:44 +05:00
|
|
|
public virtual User User { get; set; } = null!;
|
2022-12-22 18:08:58 +05:00
|
|
|
}
|
|
|
|
}
|