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

32 lines
1.2 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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 ProcessMapPlanOperationSwitchingToTheMode : ProcessMapPlanBase
{
[Column("ramp_time"), Comment("Время выхода буровых насосов на плановый расход, сек.")]
[Range(0.0, 3600.0)]
[Required]
public double RampTime { get; set; }
[Column("flow_rate"), Comment("Расход, л/с")]
[Range(0.0, 100.0)]
[Required]
public double FlowRate { get; set; }
[Column("pressure_limit"), Comment("Максимально допустимое давление, атм.")]
[Range(0.0, 400.0)]
[Required]
public double PressureMax { get; set; }
[Column("note"), Comment("Примечание"), StringLength(1024)]
[Required]
public string Note { get; set; } = string.Empty;
[ForeignKey(nameof(IdPrevious))]
public virtual ProcessMapPlanOperationSwitchingToTheMode? Previous { get; set; }
}