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

51 lines
1.6 KiB
C#
Raw Normal View History

using Microsoft.EntityFrameworkCore;
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace AsbCloudDb.Model
{
2021-08-10 15:53:11 +05:00
[Table("t_telemetry_message"), Comment("Сообщения на буровых")]
public partial class TelemetryMessage : IId, ITelemetryData
{
[Key]
[Column("id")]
public int Id { get; set; }
2021-04-23 10:21:25 +05:00
[Column("id_telemetry")]
public int IdTelemetry { get; set; }
2021-04-23 10:21:25 +05:00
[Column("id_event")]
public int IdEvent { get; set; }
2021-04-23 10:21:25 +05:00
[Column("id_telemetry_user"), Comment("Пользователь панели отправляющей телеметрию. не пользователь облака.")]
public int? IdTelemetryUser { get; set; }
2021-04-23 10:21:25 +05:00
[Column("date", TypeName = "timestamp with time zone")]
2022-04-01 17:55:44 +05:00
public DateTimeOffset DateTime { get; set; }
2021-04-23 10:21:25 +05:00
[Column("well_depth")]
public double WellDepth { get; set; }
[Column("arg0"), Comment("Аргумент №0 для вставки в шаблон сообщения")]
[StringLength(255)]
2023-02-20 15:06:26 +05:00
public string? Arg0 { get; set; }
2021-04-23 10:21:25 +05:00
[Column("arg1")]
[StringLength(255)]
2023-02-20 15:06:26 +05:00
public string? Arg1 { get; set; }
2021-04-23 10:21:25 +05:00
[Column("arg2")]
[StringLength(255)]
2023-02-20 15:06:26 +05:00
public string? Arg2 { get; set; }
2021-04-23 10:21:25 +05:00
[Column("arg3")]
[StringLength(255)]
2023-02-20 15:06:26 +05:00
public string? Arg3 { get; set; }
[ForeignKey(nameof(IdTelemetry))]
[InverseProperty(nameof(Model.Telemetry.Messages))]
2023-02-20 15:06:26 +05:00
public virtual Telemetry Telemetry { get; set; } = null!;
}
}