Blame view

HHECS.DAQClient/Model/EquipmentDataQueue.cs 1.48 KB
唐召明 authored
1
2
3
4
5
6
7
8
9
10
using FreeSql.DataAnnotations;
using HHECS.DataContract;
using HHECS.DAQClient.Dto;

namespace HHECS.DAQClient.Model
{
    /// <summary>
    /// 设备数据队列
    /// </summary>
    /// <remarks>存储采集到的设备数据并按顺序推送至Iot</remarks>
唐召明 authored
11
    [Table(Name = "equipmentDataQueue")]
唐召明 authored
12
13
14
15
16
17
18
19
20
21
22
23
24
    public class EquipmentDataQueue : BaseEntityCU<Guid>
    {
        /// <summary>
        /// 设备编号
        /// </summary>
        public string EquipmentCode { get; set; }

        /// <summary>
        /// 设备类型
        /// </summary>
        public string EquipmentTypeCode { get; set; }

        /// <summary>
25
26
27
28
29
        /// 设备名称
        /// </summary>
        public string EquipmentName { get; set; } = null!;

        /// <summary>
唐召明 authored
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
        /// 数据数组
        /// </summary>
        /// <remarks><see cref="TagItem"/></remarks>
        public string Reported { get; set; }

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

        /// <summary>
        /// 数据源时间戳
        /// </summary>
        public long SourceTimestamp { get; set; }

        /// <summary>
        /// 是否已提交
        /// </summary>
        public bool IsCommit { get; set; }
唐召明 authored
49
50
51
52
53
54
55
56
57
58

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

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }
唐召明 authored
59
60
    }
}