EquipmentAlarmRecord.cs 1.76 KB
using FreeSql.DataAnnotations;

namespace HHECS.DAQHandle.Models
{
    /// <summary>
    /// 设备报警记录
    /// </summary>
    [Table(Name = "daq_equipment_alarm_record")]
    public class EquipmentAlarmRecord
    {
        [Column(IsPrimary = true)]
        public Guid Id { get; set; }

        /// <summary>
        /// 设备编号/IOT云平台设备SN
        /// </summary>
        public string EquipmentCode { get; set; } = null!;

        /// <summary>
        /// 设备名称
        /// </summary>
        public string EquipmentName { get; set; } = null!;
        /// <summary>
        /// 设备类型
        /// </summary>
        public string EquipmentType { get; set; } = null!;

        /// <summary>
        /// 属性名称
        /// </summary>
        public string PropCode { get; set; }

        /// <summary>
        /// 报警内容
        /// </summary>
        public string AlarmMessage { get; set; } = null!;

        /// <summary>
        /// 是否结束
        /// </summary>
        public bool IsEnd { get; set; }

        /// <summary>
        /// 仓库编号
        /// </summary>
        public string WarehouseCode { get; set; } = null!;

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }

        /// <summary>
        /// 处理时间
        /// </summary>
        public DateTime? HandleTime { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 错误时长 (单位秒)
        /// </summary>
        public double ErrorDuration { get; set; }
    }
}