EquipmentDataQueue.cs
1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
using DataAcquisition.ViewModels.IOT;
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace DataAcquisition.Models
{
[Comment("数据推送队列")]
[Table("EquipmentDataQueue")]
public class EquipmentDataQueue
{
[Key]
public Guid Id { get; set; }
[Comment("设备编号")]
public string EquipmentCode { get; set; } = null!;
[Comment("设备类型")]
public string EquipmentTypeCode { get; set; } = null!;
[Comment("设备名称")]
public string EquipmentName { get; set; } = null!;
/// <summary>
/// Json数据
/// </summary>
/// <remarks><see cref="TagItem"/></remarks>
[Comment("数据数组")]
public string Reported { get; set; } = null!;
[Comment("版本号")]
public int Version { get; set; }
[Comment("数据源时间戳")]
public long SourceTimestamp { get; set; }
[Comment("是否已提交")]
public bool IsCommit { get; set; }
[Comment("创建时间")]
public DateTime? CreateTime { get; set; }
[Comment("修改时间")]
public DateTime? UpdateTime { get; set; }
}
}