2022-06-17 13:20:48 +05:00
|
|
|
|
using System;
|
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
2022-06-30 16:01:46 +05:00
|
|
|
|
|
2022-06-17 13:20:48 +05:00
|
|
|
|
namespace AsbCloudDb.Model.DailyReportDB
|
|
|
|
|
{
|
|
|
|
|
#nullable disable
|
2022-07-04 13:15:26 +05:00
|
|
|
|
[Table("t_daily_report_mod"), Comment("Ежедневные отчёты")]
|
|
|
|
|
public class DailyReport
|
2022-06-17 13:20:48 +05:00
|
|
|
|
{
|
|
|
|
|
[Column("id_well"), Comment("ID скважины")]
|
|
|
|
|
public int IdWell { get; set; }
|
|
|
|
|
|
|
|
|
|
[Column("start_date", TypeName = "timestamp with time zone"), Comment("Дата отчёта")]
|
|
|
|
|
public DateTimeOffset StartDate { get; set; }
|
|
|
|
|
|
|
|
|
|
[Column("blockHead", TypeName = "jsonb"), Comment("1 блок параметров для отчёта")]
|
2022-07-04 13:15:26 +05:00
|
|
|
|
public DailyReportHead BlockHead { get; set; }
|
2022-06-17 13:20:48 +05:00
|
|
|
|
|
|
|
|
|
[Column("blockBha", TypeName = "jsonb"), Comment("2 блок параметров для отчёта")]
|
|
|
|
|
public DailyReportBha BlockBha { get; set; }
|
|
|
|
|
|
2022-07-04 13:15:26 +05:00
|
|
|
|
[Column("blockTimeBalance", TypeName = "jsonb"), Comment("2 блок параметров для отчёта")]
|
|
|
|
|
public DailyReportTimeBalance BlockTimeBalance { get; set; }
|
|
|
|
|
|
2022-06-17 13:20:48 +05:00
|
|
|
|
[Column("blockDimensionless", TypeName = "jsonb"), Comment("4 блок параметров для отчёта")]
|
|
|
|
|
public DailyReportDimensionless BlockDimensionless { get; set; }
|
|
|
|
|
|
|
|
|
|
[Column("blockSaub", TypeName = "jsonb"), Comment("5 блок параметров для отчёта")]
|
|
|
|
|
public DailyReportSaub BlockSaub { get; set; }
|
|
|
|
|
|
|
|
|
|
[Column("blockSign", TypeName = "jsonb"), Comment("6 блок параметров для отчёта")]
|
|
|
|
|
public DailyReportSign BlockSign { get; set; }
|
|
|
|
|
|
|
|
|
|
[ForeignKey(nameof(IdWell))]
|
|
|
|
|
public virtual Well Well { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-07-04 13:15:26 +05:00
|
|
|
|
|
2022-06-17 13:20:48 +05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|