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

45 lines
1.6 KiB
C#
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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_functions_oscillation"), Comment("Осцилляция")]
public class ProcessMapPlanFunctionsOscillation : 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_limit_right"), Comment("Ограничение момента вправо, кН*м")]
[Range(0.0, 35.0)]
[Required]
public double TorqueLimitRight { get; set; }
[Column("torque_limit_left"), Comment("Ограничение момента влево, кН*м")]
[Range(0.0, 35.0)]
[Required]
public double TorqueLimitLeft { get; set; }
[Column("id_mode"), Comment("Режим Авто/Руч")]
[Required]
public bool Mode { get; set; }
[Column("note"), Comment("Примечание"), StringLength(1024)]
public string Note { get; set; } = string.Empty;
[ForeignKey(nameof(IdPrevious))]
public virtual ProcessMapPlanFunctionsOscillation? Previous { get; set; }
}