forked from ddrilling/AsbCloudServer
37 lines
918 B
C#
37 lines
918 B
C#
using Microsoft.EntityFrameworkCore;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Text.Json.Serialization;
|
|
|
|
#nullable disable
|
|
|
|
namespace AsbCloudDb.Model
|
|
{
|
|
[Table("t_well_operation"), Comment("Операции по скважине")]
|
|
public class WellOperation
|
|
{
|
|
[Key]
|
|
[Column("id")]
|
|
public int Id { get; set; }
|
|
|
|
[Column("id_well")]
|
|
public int IdWell { get; set; }
|
|
|
|
[Column("caption")]
|
|
public string Caption { get; set; }
|
|
|
|
[Column("description")]
|
|
public string Description { get; set; }
|
|
|
|
[Column("casing_section")]
|
|
public double CasingSection { get; set; }
|
|
|
|
[Column("well_depth")]
|
|
public double WellDepth { get; set; }
|
|
|
|
[JsonIgnore]
|
|
[ForeignKey(nameof(IdWell))]
|
|
public virtual Well Well { get; set; }
|
|
}
|
|
}
|