36 lines
1.0 KiB
C#
36 lines
1.0 KiB
C#
using Kurisu.AspNetCore.DataAccess.SqlSugar;
|
|
using SqlSugar;
|
|
|
|
namespace Dlhis.Entity.Device.Entities;
|
|
|
|
/// <summary>
|
|
/// 设备注册表
|
|
/// </summary>
|
|
[SugarTable(TableName = "DeviceRegistry", TableDescription = "设备注册表")]
|
|
public class DeviceRegistryEntity : SugarBaseEntity
|
|
{
|
|
/// <summary>
|
|
/// 设备唯一号
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "设备唯一号", UniqueGroupNameList = new[] { "idx_DeviceRegistry_DeviceUniqueNo" })]
|
|
public string DeviceUniqueNo { get; set; }
|
|
|
|
/// <summary>
|
|
/// 注册时间
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "注册时间")]
|
|
public DateTime RegisterTime { get; set; }
|
|
|
|
/// <summary>
|
|
/// 最后一次心跳时间
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "最后一次心跳时间")]
|
|
public DateTime LastHeartbeatTime { get; set; }
|
|
|
|
/// <summary>
|
|
/// 营业点code(可为空)
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = true, ColumnDescription = "营业点code")]
|
|
public Guid? BusinessPlaceCode { get; set; }
|
|
}
|