2022-07-25 18:02:39 +05:00
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
using System;
|
2022-06-17 13:20:48 +05:00
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
2022-06-30 16:01:46 +05:00
|
|
|
|
|
2022-07-25 18:02:39 +05:00
|
|
|
|
namespace AsbCloudDb.Model.DailyReport
|
2022-06-17 13:20:48 +05:00
|
|
|
|
{
|
2022-07-05 11:30:25 +05:00
|
|
|
|
[Table("t_daily_report"), Comment("Ежедневные отчёты")]
|
2022-07-04 13:15:26 +05:00
|
|
|
|
public class DailyReport
|
2022-06-17 13:20:48 +05:00
|
|
|
|
{
|
|
|
|
|
[Column("id_well"), Comment("ID скважины")]
|
|
|
|
|
public int IdWell { get; set; }
|
|
|
|
|
|
2023-03-06 16:30:36 +05:00
|
|
|
|
[Column("start_date", TypeName = "date"), Comment("Дата отчёта")]
|
|
|
|
|
public DateOnly StartDate { get; set; }
|
2022-06-17 13:20:48 +05:00
|
|
|
|
|
2022-07-05 11:30:25 +05:00
|
|
|
|
[Column("info", TypeName = "jsonb"), Comment("Список параметров для отчёта")]
|
2023-02-20 15:28:35 +05:00
|
|
|
|
public DailyReportInfo Info { get; set; } = null!;
|
2022-06-17 13:20:48 +05:00
|
|
|
|
|
|
|
|
|
[ForeignKey(nameof(IdWell))]
|
2023-02-20 15:28:35 +05:00
|
|
|
|
public virtual Well Well { get; set; } = null!;
|
2022-06-17 13:20:48 +05:00
|
|
|
|
}
|
2023-02-20 15:28:35 +05:00
|
|
|
|
}
|