2024-07-04 11:02:45 +05:00
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
2021-07-21 15:29:19 +05:00
|
|
|
|
using System;
|
2021-05-20 14:30:25 +05:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
2021-05-18 12:33:23 +05:00
|
|
|
|
|
|
|
|
|
namespace AsbCloudDb.Model
|
|
|
|
|
{
|
2021-08-16 10:38:48 +05:00
|
|
|
|
[Table("t_report_property"), Comment("Отчеты с данными по буровым")]
|
2022-06-09 11:19:52 +05:00
|
|
|
|
public class ReportProperty : IId, IWellRelated
|
2021-05-18 12:33:23 +05:00
|
|
|
|
{
|
2021-05-20 14:30:25 +05:00
|
|
|
|
[Key]
|
|
|
|
|
[Column("id")]
|
2021-05-18 12:33:23 +05:00
|
|
|
|
public int Id { get; set; }
|
2021-07-21 12:30:51 +05:00
|
|
|
|
|
2021-05-20 14:30:25 +05:00
|
|
|
|
[Column("id_well"), Comment("id скважины")]
|
2021-07-21 12:30:51 +05:00
|
|
|
|
public int IdWell { get; set; }
|
|
|
|
|
|
2021-07-27 16:55:32 +05:00
|
|
|
|
[Column("id_file"), Comment("id файла-родителя")]
|
|
|
|
|
public int IdFile { get; set; }
|
2021-07-21 12:30:51 +05:00
|
|
|
|
|
2021-05-20 14:30:25 +05:00
|
|
|
|
[Column("begin", TypeName = "timestamp with time zone")]
|
2021-06-07 16:31:14 +05:00
|
|
|
|
public DateTimeOffset Begin { get; set; }
|
2021-07-21 12:30:51 +05:00
|
|
|
|
|
2021-05-20 14:30:25 +05:00
|
|
|
|
[Column("end"), Comment("timestamp with time zone")]
|
2021-06-07 16:31:14 +05:00
|
|
|
|
public DateTimeOffset End { get; set; }
|
2021-07-21 12:30:51 +05:00
|
|
|
|
|
2021-05-24 16:31:02 +05:00
|
|
|
|
[Column("step"), Comment("размер шага в секундах")]
|
2021-05-20 14:30:25 +05:00
|
|
|
|
public int Step { get; set; }
|
2021-07-21 12:30:51 +05:00
|
|
|
|
|
2021-05-20 14:30:25 +05:00
|
|
|
|
[Column("format"), Comment("Формат отчета")]
|
|
|
|
|
public int Format { get; set; }
|
|
|
|
|
|
2021-07-21 12:30:51 +05:00
|
|
|
|
[ForeignKey(nameof(IdWell))]
|
2023-02-20 14:21:52 +05:00
|
|
|
|
public virtual Well Well { get; set; } = null!;
|
2021-07-27 16:55:32 +05:00
|
|
|
|
|
|
|
|
|
[ForeignKey(nameof(IdFile))]
|
2023-02-20 14:21:52 +05:00
|
|
|
|
public virtual FileInfo File { get; set; } = null!;
|
2021-05-18 12:33:23 +05:00
|
|
|
|
}
|
2022-05-06 10:58:52 +05:00
|
|
|
|
|
2021-05-18 12:33:23 +05:00
|
|
|
|
}
|