2023-10-09 15:06:03 +05:00
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
using System;
|
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
|
|
|
|
|
|
namespace AsbCloudDb.Model.ProcessMaps;
|
|
|
|
|
|
|
|
|
|
public abstract class ProcessMapBase : IId, IWellRelated
|
|
|
|
|
{
|
|
|
|
|
[Key]
|
|
|
|
|
[Column("id")]
|
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
|
|
|
|
|
[Column("id_well"), Comment("Id скважины")]
|
|
|
|
|
public int IdWell { get; set; }
|
|
|
|
|
|
2023-10-12 14:51:57 +05:00
|
|
|
|
[Column("id_wellsection_type"), Comment("Тип секции")]
|
|
|
|
|
public int IdWellSectionType { get; set; }
|
|
|
|
|
|
2023-10-09 15:06:03 +05:00
|
|
|
|
[Column("id_user"), Comment("Id пользователя")]
|
|
|
|
|
public int IdUser { 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; }
|
|
|
|
|
|
2023-10-12 14:51:57 +05:00
|
|
|
|
[Column("comment"), Comment("Комментарий")]
|
|
|
|
|
public string? Comment { get; set; }
|
|
|
|
|
|
2023-10-09 15:06:03 +05:00
|
|
|
|
[ForeignKey(nameof(IdWell))]
|
|
|
|
|
public virtual Well Well { get; set; } = null!;
|
|
|
|
|
|
|
|
|
|
[ForeignKey(nameof(IdUser))]
|
|
|
|
|
public virtual User User { get; set; } = null!;
|
2023-10-12 14:51:57 +05:00
|
|
|
|
|
|
|
|
|
[ForeignKey(nameof(IdWellSectionType))]
|
|
|
|
|
public virtual WellSectionType WellSectionType { get; set; } = null!;
|
2023-10-09 15:06:03 +05:00
|
|
|
|
}
|