DD.WellWorkover.Cloud/AsbCloudDb/Model/TelemetryMessage.cs
Фролов 962d6e15b6 Fix spelling for defaults.
Replace DateTime to DateTimeOffset in models
2021-12-30 10:45:06 +05:00

53 lines
1.6 KiB
C#

using Microsoft.EntityFrameworkCore;
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
#nullable disable
namespace AsbCloudDb.Model
{
[Table("t_telemetry_message"), Comment("Сообщения на буровых")]
public partial class TelemetryMessage : IId, ITelemetryData
{
[Key]
[Column("id")]
public int Id { get; set; }
[Column("id_telemetry")]
public int IdTelemetry { get; set; }
[Column("id_event")]
public int IdEvent { get; set; }
[Column("id_telemetry_user"), Comment("Пользователь панели отправляющей телеметрию. не пользователь облака.")]
public int? IdTelemetryUser { get; set; }
[Column("date", TypeName = "timestamp with time zone")]
public DateTimeOffset Date { get; set; }
[Column("well_depth")]
public double WellDepth { get; set; }
[Column("arg0"), Comment("Аргумент №0 для вставки в шаблон сообщения")]
[StringLength(255)]
public string Arg0 { get; set; }
[Column("arg1")]
[StringLength(255)]
public string Arg1 { get; set; }
[Column("arg2")]
[StringLength(255)]
public string Arg2 { get; set; }
[Column("arg3")]
[StringLength(255)]
public string Arg3 { get; set; }
[ForeignKey(nameof(IdTelemetry))]
[InverseProperty(nameof(Model.Telemetry.Messages))]
public virtual Telemetry Telemetry { get; set; }
}
}