2024-07-04 11:02:45 +05:00
|
|
|
using Microsoft.EntityFrameworkCore;
|
2022-11-18 14:29:29 +05:00
|
|
|
using System;
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
using System.Text.Json.Serialization;
|
|
|
|
|
|
|
|
namespace AsbCloudDb.Model
|
|
|
|
{
|
|
|
|
[Table("t_limiting_parameter"), Comment("Ограничения по параметрам телеметрии")]
|
|
|
|
public class LimitingParameter : IId
|
|
|
|
{
|
|
|
|
[Column("id"), Key]
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
|
|
|
[Column("id_telemetry")]
|
|
|
|
public int IdTelemetry { get; set; }
|
|
|
|
|
|
|
|
[Column("date_start")]
|
2022-11-23 11:19:52 +05:00
|
|
|
public DateTimeOffset DateStart { get; set; }
|
2022-11-18 14:29:29 +05:00
|
|
|
|
|
|
|
[Column("date_end")]
|
2022-11-23 11:19:52 +05:00
|
|
|
public DateTimeOffset DateEnd { get; set; }
|
2022-11-18 14:29:29 +05:00
|
|
|
|
|
|
|
[Column("depth_start")]
|
2022-11-23 11:19:52 +05:00
|
|
|
public float DepthStart { get; set; }
|
2022-11-18 14:29:29 +05:00
|
|
|
|
|
|
|
[Column("depth_end")]
|
2022-11-23 11:19:52 +05:00
|
|
|
public float DepthEnd { get; set; }
|
2022-11-18 14:29:29 +05:00
|
|
|
|
|
|
|
[Column("id_feed_regulator")]
|
|
|
|
public short IdFeedRegulator { get; set; }
|
|
|
|
|
|
|
|
[JsonIgnore]
|
|
|
|
[ForeignKey(nameof(IdTelemetry))]
|
|
|
|
public virtual Telemetry Telemetry { get; set; } = null!;
|
|
|
|
}
|
|
|
|
}
|