49 lines
1.3 KiB
C#
49 lines
1.3 KiB
C#
using Dlhis.Entity.Device.Enums;
|
|
using Kurisu.AspNetCore.DataAccess.Entity;
|
|
using Kurisu.AspNetCore.DataAccess.SqlSugar;
|
|
using SqlSugar;
|
|
using SqlSugar.DbConvert;
|
|
|
|
namespace Dlhis.Entity.Device.Entities;
|
|
|
|
[SugarTable(TableName = "DeviceUploadLog", TableDescription = "设备上传记录")]
|
|
public class DeviceUploadLogEntity : SugarBaseEntity, ITenantId
|
|
{
|
|
[SugarColumn(IsNullable = true)]
|
|
public string SerialNo { get; set; }
|
|
|
|
/// <summary>
|
|
/// 设备号
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = false)]
|
|
public string DeviceUniqueNo { get; set; }
|
|
|
|
/// <summary>
|
|
/// 人员唯一号
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = true)]
|
|
public string UserUniqueNo { get; set; }
|
|
|
|
/// <summary>
|
|
/// 产生时间
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = false)]
|
|
public DateTime RaiseDateTime { get; set; }
|
|
|
|
/// <summary>
|
|
/// 日志类型
|
|
/// </summary>
|
|
[SugarColumn(ColumnDataType = "varchar(50)", SqlParameterDbType = typeof(EnumToStringConvert))]
|
|
public DeviceUploadLogTypeEnumType Type { get; set; }
|
|
|
|
/// <summary>
|
|
/// 同步数据
|
|
/// </summary>
|
|
[SugarColumn(ColumnDataType = "bit")]
|
|
public bool Sync { get; set; }
|
|
|
|
|
|
[SugarColumn(IndexGroupNameList = new string[] { "idx_DeviceUploadLog_TenantId" })]
|
|
public string TenantId { get; set; }
|
|
}
|