DD.WellWorkover.Cloud/AsbCloudDb/Model/ProcessMapPlan/ProcessMapPlanOperationSwitchMode.cs

31 lines
1.3 KiB
C#
Raw Normal View History

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_mode"), Comment("Выход на режим")]
public class ProcessMapPlanOperationSwitchMode : ProcessMapPlanBase
{
[Column("exit_time_consumption"), Comment("Выход на плановый расход, время выхода буровых насосов на плановый расход, сек.")]
[Range(0.0, 3600.0)]
[Required]
public double ExitTimeConsumption { get; set; }
[Column("consumption_flow_rate"), Comment("Выход на плановый расход, расход, л/с")]
[Range(0.0, 100.0)]
[Required]
public double ConsumptionFlowRate { get; set; }
[Column("pressure_limit_Max"), Comment("Максимально допустимое давление, атм.")]
[Range(0.0, 400.0)]
[Required]
public double PressureLimitMax { get; set; }
[Column("сomment"), Comment("Комментарий")]
public double Comment { get; set; }
[ForeignKey(nameof(IdPrevious))]
public virtual ProcessMapPlanOperationSwitchMode? Previous { get; set; }
}