forked from ddrilling/AsbCloudServer
25 lines
1008 B
C#
25 lines
1008 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using AsbCloudDb.Model.ProcessMapPlan;
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace AsbCloudDb.Model.ProcessMapPlan.Operations;
|
|
|
|
[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; }
|
|
|
|
[Column("note"), Comment("Примечание"), StringLength(1024)]
|
|
public string Note { get; set; } = string.Empty;
|
|
|
|
[ForeignKey(nameof(IdPrevious))]
|
|
public virtual ProcessMapPlanSwitchingOffThePump? Previous { get; set; }
|
|
} |