2024-07-04 11:02:45 +05:00
|
|
|
using System.ComponentModel.DataAnnotations;
|
2024-06-25 09:24:34 +05:00
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
using AsbCloudDb.Model.ProcessMapPlan;
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
2024-06-30 21:02:55 +05:00
|
|
|
namespace AsbCloudDb.Model.ProcessMapPlan.Operations;
|
2024-06-25 09:24:34 +05:00
|
|
|
|
2024-06-30 13:42:37 +05:00
|
|
|
[Table("t_process_map_plan_recording_static_measurement"), Comment("Запись статического замера")]
|
|
|
|
public class ProcessMapPlanRecordingStaticMeasurement : ProcessMapPlanBase
|
2024-06-25 09:24:34 +05:00
|
|
|
{
|
|
|
|
[Column("measurement_recording_time"), Comment("Время записи замера, сек")]
|
|
|
|
[Range(0.0, 1800.0)]
|
|
|
|
[Required]
|
|
|
|
public double MeasurementRecordingTime { get; set; }
|
|
|
|
|
2024-06-30 13:44:40 +05:00
|
|
|
[Column("note"), Comment("Примечание"), StringLength(1024)]
|
|
|
|
public string Note { get; set; } = string.Empty;
|
|
|
|
|
2024-06-25 09:24:34 +05:00
|
|
|
[ForeignKey(nameof(IdPrevious))]
|
2024-06-30 13:42:37 +05:00
|
|
|
public virtual ProcessMapPlanRecordingStaticMeasurement? Previous { get; set; }
|
2024-06-25 09:24:34 +05:00
|
|
|
}
|