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; } /// /// 设备号 /// [SugarColumn(IsNullable = false)] public string DeviceUniqueNo { get; set; } /// /// 人员唯一号 /// [SugarColumn(IsNullable = true)] public string UserUniqueNo { get; set; } /// /// 产生时间 /// [SugarColumn(IsNullable = false)] public DateTime RaiseDateTime { get; set; } /// /// 日志类型 /// [SugarColumn(ColumnDataType = "varchar(50)", SqlParameterDbType = typeof(EnumToStringConvert))] public DeviceUploadLogTypeEnumType Type { get; set; } /// /// 同步数据 /// [SugarColumn(ColumnDataType = "bit")] public bool Sync { get; set; } [SugarColumn(IndexGroupNameList = new string[] { "idx_DeviceUploadLog_TenantId" })] public string TenantId { get; set; } }