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

40 lines
1.2 KiB
C#
Raw Normal View History

2021-07-21 15:29:19 +05:00
using Microsoft.EntityFrameworkCore;
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace AsbCloudDb.Model
{
[Table("t_report"), Comment("Отчеты с данными по буровым")]
public class Report : IId
{
[Key]
[Column("id")]
public int Id { get; set; }
[Column("name"), Comment("Название отчета (файла)")]
public string Name { get; set; }
[Column("id_well"), Comment("id скважины")]
public int IdWell { get; set; }
[Column("date", TypeName = "timestamp with time zone")]
public DateTime Date { get; set; }
[Column("begin", TypeName = "timestamp with time zone")]
public DateTimeOffset Begin { get; set; }
[Column("end"), Comment("timestamp with time zone")]
public DateTimeOffset End { get; set; }
2021-05-24 16:31:02 +05:00
[Column("step"), Comment("размер шага в секундах")]
public int Step { get; set; }
[Column("format"), Comment("Формат отчета")]
public int Format { get; set; }
[ForeignKey(nameof(IdWell))]
public virtual Well Well { get; set; }
}
}