DD.WellWorkover.Cloud/AsbCloudDb/Model/DailyReport/DailyReport.cs

22 lines
764 B
C#
Raw Normal View History

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