DD.WellWorkover.Cloud/AsbCloudDb/Model/ProcessMapPlan/Functions/ProcessMapPlanOscillation.cs

46 lines
1.6 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.ProcessMapPlan.Functions;
[Table("t_process_map_plan_oscillation"), Comment("Осцилляция")]
public class ProcessMapPlanOscillation : ProcessMapPlanBase
{
[Column("optimal_oscillation_angle"), Comment("Оптимальный угол осцилляции, градусы")]
[Range(0.0, 6000.0)]
[Required]
public double OptimalOscillationAngle { get; set; }
[Column("Rpm_right"), Comment("Скорость вправо, об/мин")]
[Range(0.0, 270.0)]
[Required]
public double RpmRight { get; set; }
[Column("Rpm_left"), Comment("Скорость влево, об/мин")]
[Range(0.0, 270.0)]
[Required]
public double RpmLeft { get; set; }
[Column("torque_max_right"), Comment("Ограничение момента вправо, кН*м")]
[Range(0.0, 35.0)]
[Required]
public double TorqueMaxRight { get; set; }
[Column("torque_max_left"), Comment("Ограничение момента влево, кН*м")]
[Range(0.0, 35.0)]
[Required]
public double TorqueMaxLeft { get; set; }
[Column("mode"), Comment("Режим Авто/Руч")]
[Range(0, 1)]
[Required]
public int Mode { get; set; }
[Column("note"), Comment("Примечание"), StringLength(1024)]
public string? Note { get; set; }
[ForeignKey(nameof(IdPrevious))]
public virtual ProcessMapPlanOscillation? Previous { get; set; }
}