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_positioning_off_the_bottom"), Comment("Позиционирование над забоем")]
public class ProcessMapPlanOperationPositioningOffTheBottom : ProcessMapPlanBase
{
    [Column("stop_off_the_bottom"), Comment("Остановка над забоем, м")]
    [Range(0.0, 30.0)]
    [Required]
    public double StopOffTheBottom { get; set; }

    [ForeignKey(nameof(IdPrevious))]
    public virtual ProcessMapPlanOperationPositioningOffTheBottom? Previous { get; set; }
}