using System; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using Microsoft.EntityFrameworkCore; namespace AsbCloudDb.Model; [Table("t_daily_report"), Comment("Ежедневные отчёты")] public class DailyReport : IId { [Key] public int Id { get; set; } [Column("id_well"), Comment("ID скважины")] public int IdWell { get; set; } [Column("date_last_update", TypeName = "timestamp with time zone"), Comment("Дата последнего обновления")] public DateTime? DateLastUpdate { get; set; } [Column("date_start", TypeName = "timestamp with time zone"), Comment("Начальная дата отчёта")] public DateTime DateStart { get; set; } [Column("date_end", TypeName = "timestamp with time zone"), Comment("Конечная дата отчёта")] public DateTime DateEnd { get; set; } [Column("blocks", TypeName = "jsonb"), Comment("Блоки использующиеся в отчёте")] public string? Blocks { get; set; } [ForeignKey(nameof(IdWell))] public virtual Well Well { get; set; } = null!; }