2024-07-04 11:02:45 +05:00
|
|
|
using Microsoft.EntityFrameworkCore;
|
2022-06-07 16:24:05 +05:00
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
|
|
|
|
namespace AsbCloudDb.Model
|
|
|
|
{
|
|
|
|
[Table("t_operationvalue"), Comment("Целевые/нормативные показатели операции")]
|
2022-06-15 14:57:37 +05:00
|
|
|
public class OperationValue : IId, IWellRelated
|
2022-06-07 16:24:05 +05:00
|
|
|
{
|
|
|
|
[Key]
|
|
|
|
[Column("id"), Comment("Идентификатор")]
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
|
|
|
[Column("id_well"), Comment("Ид скважины")]
|
|
|
|
public int IdWell { get; set; }
|
|
|
|
|
|
|
|
[Column("id_operation_category"), Comment("Ид категории операции")]
|
|
|
|
public int IdOperationCategory { get; set; }
|
|
|
|
|
|
|
|
[Column("target_value"), Comment("Целевой показатель")]
|
|
|
|
public double TargetValue { get; set; }
|
|
|
|
|
|
|
|
[Column("standard_value"), Comment("Нормативный показатель")]
|
|
|
|
public double StandardValue { get; set; }
|
|
|
|
|
|
|
|
[Column("depth_start"), Comment("Старотовая глубина")]
|
2022-06-15 14:57:37 +05:00
|
|
|
public double DepthStart { get; set; }
|
2022-06-07 16:24:05 +05:00
|
|
|
|
|
|
|
[Column("depth_end"), Comment("Конечная глубина")]
|
|
|
|
public double DepthEnd { get; set; }
|
|
|
|
|
|
|
|
[ForeignKey(nameof(IdWell))]
|
|
|
|
public virtual Well Well { get; set; } = null!;
|
|
|
|
|
|
|
|
[ForeignKey(nameof(IdOperationCategory))]
|
|
|
|
public virtual WellOperationCategory OperationCategory { get; set; } = null!;
|
|
|
|
}
|
|
|
|
}
|