EquipmentDataRecord.cs 1.2 KB
using FreeSql.DataAnnotations;

namespace HHECS.DAQHandle.Models
{
    /// <summary>
    /// 设备数据记录
    /// </summary>
    [Table(Name = "daq_equipmentDataRecord")]
    public class EquipmentDataRecord
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Column(IsPrimary = true)]
        public Guid Id { get; set; }

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

        /// <summary>
        /// Json数据
        /// </summary>
        public string Tags { get; set; } = null!;

        /// <summary>
        /// 版本号
        /// </summary>
        public int Version { get; set; }

        /// <summary>
        /// 客户端提交时间戳
        /// </summary>
        public long Timestamp { get; set; }

        /// <summary>
        /// 是否已处理
        /// </summary>
        public bool IsHandle { get; set; }

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

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