using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using AsbCloudDb.Model.ProcessMapPlan; using Microsoft.EntityFrameworkCore; namespace AsbCloudDb.Model.ProcessMaps; [Table("t_process_map_plan_operation_switch_pump"), Comment("Выключение насоса")] public class ProcessMapPlanOperationSwitchPump : 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; } [ForeignKey(nameof(IdPrevious))] public virtual ProcessMapPlanOperationSwitchPump? Previous { get; set; } }