DD.WellWorkover.Cloud/AsbCloudDb/Model/ProcessMapPlan/Operations/ProcessMapPlanSwitchingOffThePump.cs

25 lines
1008 B
C#
Raw Normal View History

using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using AsbCloudDb.Model.ProcessMapPlan;
using Microsoft.EntityFrameworkCore;
namespace AsbCloudDb.Model.ProcessMapPlan.Operations;
2024-06-29 23:40:02 +05:00
[Table("t_process_map_plan_operation_switching_off_the_pump"), Comment("Выключение насоса")]
public class ProcessMapPlanSwitchingOffThePump : ProcessMapPlanBase
{
[Column("duration"), Comment("Продолжительность, сек.")]
[Range(0.0, 1800.0)]
[Required]
public double Duration { get; set; }
[Column("residual_pressure_limit"), Comment("Лимит остаточного давления, атм.")]
[Range(0.0, 100.0)]
public double ResidualPressureLimit { get; set; }
2024-07-01 10:18:19 +05:00
[Column("note"), Comment("Примечание"), StringLength(1024)]
public string Note { get; set; } = string.Empty;
[ForeignKey(nameof(IdPrevious))]
2024-06-29 23:40:02 +05:00
public virtual ProcessMapPlanSwitchingOffThePump? Previous { get; set; }
}