2021-08-13 17:25:06 +05:00
|
|
|
|
using System;
|
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
2021-07-27 14:43:30 +05:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
|
using System.Text.Json.Serialization;
|
|
|
|
|
|
|
|
|
|
namespace AsbCloudDb.Model
|
|
|
|
|
{
|
2021-08-16 10:38:48 +05:00
|
|
|
|
[Table("t_well_operation"), Comment("Данные по операциям на скважине")]
|
2021-09-09 12:31:12 +05:00
|
|
|
|
public class WellOperation : IId
|
2021-07-27 14:43:30 +05:00
|
|
|
|
{
|
|
|
|
|
[Key]
|
|
|
|
|
[Column("id")]
|
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
|
2021-08-13 17:25:06 +05:00
|
|
|
|
[Column("id_well"), Comment("Id скважины")]
|
2021-07-27 14:43:30 +05:00
|
|
|
|
public int IdWell { get; set; }
|
|
|
|
|
|
2021-08-16 10:21:46 +05:00
|
|
|
|
[Column("id_well_section_type"), Comment("Id тип секции скважины")]
|
|
|
|
|
public int IdWellSectionType { get; set; }
|
2021-08-13 17:25:06 +05:00
|
|
|
|
|
|
|
|
|
[Column("id_category"), Comment("Id категории операции")]
|
2021-08-18 16:57:20 +05:00
|
|
|
|
public int IdCategory { get; set; }
|
2021-08-13 17:25:06 +05:00
|
|
|
|
|
2021-08-18 16:57:20 +05:00
|
|
|
|
[Column("id_type"), Comment("0 = План или 1 = Факт")]
|
|
|
|
|
public int IdType { get; set; }
|
2021-08-13 17:25:06 +05:00
|
|
|
|
|
|
|
|
|
[Column("depth"), Comment("Глубина, на которой производилась операция")]
|
2021-08-16 16:27:09 +05:00
|
|
|
|
public double WellDepth { get; set; }
|
2021-07-27 14:43:30 +05:00
|
|
|
|
|
2021-08-13 17:25:06 +05:00
|
|
|
|
[Column("date"), Comment("Дата начала операции")]
|
|
|
|
|
public DateTime StartDate { get; set; }
|
2021-07-27 14:43:30 +05:00
|
|
|
|
|
2021-08-13 17:25:06 +05:00
|
|
|
|
[Column("duration_hours"), Comment("Продолжительность в часах")]
|
2021-08-16 10:21:46 +05:00
|
|
|
|
public double DurationHours { get; set; }
|
2021-07-27 14:43:30 +05:00
|
|
|
|
|
2021-08-18 16:57:20 +05:00
|
|
|
|
[Column("category_info"), Comment("Доп. информация к выбраной категории")]
|
|
|
|
|
public string CategoryInfo { get; set; }
|
2021-08-13 17:25:06 +05:00
|
|
|
|
|
|
|
|
|
[Column("comment"), Comment("Комментарий")]
|
|
|
|
|
public string Comment { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonIgnore]
|
2021-08-16 10:21:46 +05:00
|
|
|
|
[ForeignKey(nameof(IdWell))]
|
|
|
|
|
public virtual Well Well { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonIgnore]
|
|
|
|
|
[ForeignKey(nameof(IdWellSectionType))]
|
|
|
|
|
public virtual WellSectionType WellSectionType { get; set; }
|
2021-07-27 14:43:30 +05:00
|
|
|
|
|
|
|
|
|
[JsonIgnore]
|
2021-08-18 16:57:20 +05:00
|
|
|
|
[ForeignKey(nameof(IdCategory))]
|
2021-08-16 14:19:43 +05:00
|
|
|
|
public virtual WellOperationCategory OperationCategory { get; set; }
|
2021-07-27 14:43:30 +05:00
|
|
|
|
}
|
|
|
|
|
}
|