2021-07-21 15:29:19 +05:00
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
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-05-20 14:30:25 +05:00
|
|
|
|
[Table("t_report"), Comment("Отчеты с данными по буровым")]
|
2021-05-31 12:33:17 +05:00
|
|
|
|
public class Report : IId
|
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-31 12:33:17 +05:00
|
|
|
|
[Column("name"), Comment("Название отчета (файла)")]
|
|
|
|
|
public string Name { 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-05-20 14:30:25 +05:00
|
|
|
|
[Column("date", TypeName = "timestamp with time zone")]
|
2021-05-18 12:33:23 +05:00
|
|
|
|
public DateTime Date { 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))]
|
|
|
|
|
public virtual Well Well { get; set; }
|
2021-05-18 12:33:23 +05:00
|
|
|
|
}
|
|
|
|
|
}
|