2024-06-25 15:48:24 +05:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
|
using AsbCloudDb.Model.ProcessMapPlan;
|
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
|
2024-06-30 21:02:55 +05:00
|
|
|
|
namespace AsbCloudDb.Model.ProcessMapPlan.Operations;
|
2024-06-25 15:48:24 +05:00
|
|
|
|
|
2024-06-29 23:40:02 +05:00
|
|
|
|
[Table("t_process_map_plan_operation_switching_off_the_pump"), Comment("Выключение насоса")]
|
|
|
|
|
public class ProcessMapPlanSwitchingOffThePump : ProcessMapPlanBase
|
2024-06-25 15:48:24 +05:00
|
|
|
|
{
|
|
|
|
|
[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;
|
|
|
|
|
|
2024-06-25 15:48:24 +05:00
|
|
|
|
[ForeignKey(nameof(IdPrevious))]
|
2024-06-29 23:40:02 +05:00
|
|
|
|
public virtual ProcessMapPlanSwitchingOffThePump? Previous { get; set; }
|
2024-06-25 15:48:24 +05:00
|
|
|
|
}
|