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

47 lines
1.6 KiB
C#
Raw Normal View History

using Microsoft.EntityFrameworkCore;
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace AsbCloudDb.Model.Trajectory
{
2023-11-28 15:54:47 +05:00
public abstract class Trajectory : IId, IWellRelated
{
[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; }
[Column("wellbore_depth"), Comment("Глубина по стволу")]
2022-12-26 21:50:33 +05:00
public double WellboreDepth { get; set; }
[Column("zenith_angle"), Comment("Угол зенитный")]
2022-12-26 21:50:33 +05:00
public double ZenithAngle { get; set; }
[Column("azimuth_geo"), Comment("Азимут Географ.")]
2022-12-26 21:50:33 +05:00
public double AzimuthGeo { get; set; }
[Column("azimuth_magnetic"), Comment("Азимут Магнитный")]
2022-12-26 21:50:33 +05:00
public double AzimuthMagnetic { get; set; }
[Column("vertical_depth"), Comment("Глубина вертикальная")]
2022-12-26 21:50:33 +05:00
public double VerticalDepth { get; set; }
[Column("comment"), Comment("Комментарии")]
2022-12-26 15:49:44 +05:00
public string? Comment { get; set; }
[ForeignKey(nameof(IdWell))]
2022-12-26 15:49:44 +05:00
public virtual Well Well { get; set; } = null!;
[ForeignKey(nameof(IdUser))]
2022-12-26 15:49:44 +05:00
public virtual User User { get; set; } = null!;
}
}