EquipmentDataRecord.cs
1.28 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
47
48
49
using FreeSql.DataAnnotations;
using HHECS.DataContract;
namespace HHECS.DAQShared.Models
{
/// <summary>
/// 设备数据记录
/// </summary>
[Table(Name = "daq_equipment_data_record_{yyyyMMdd}", AsTable = $"{nameof(CreateTime)}=2024-6-11(1 day)")]
[Index($"uk_{nameof(EquipmentCode)}", $"{nameof(EquipmentCode)}", false)]
public class EquipmentDataRecord: BaseEntity<Guid>
{
/// <summary>
/// 设备编号/IOT云平台设备SN
/// </summary>
public string EquipmentCode { get; set; } = null!;
/// <summary>
/// Json数据
/// </summary>
[Column(DbType = "varchar(max)")]
public string Tags { get; set; }
/// <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; }
}
}