using Dlhis.Entity.Device.Enums; using Kurisu.Core.DataAccess.Entity; using SqlSugar; namespace Dlhis.Entity.Device.Entities; /// /// 设备 /// [SugarTable(TableName = "Device", TableDescription = "设备表")] public class DeviceEntity : SugarBaseEntity, ITenantId { /// /// 设备code /// [SugarColumn(ColumnDescription = "设备code")] public Guid Code { get; set; } /// /// 设备唯一码,IP/MAC/SNO /// [SugarColumn(ColumnDescription = "设备唯一码")] public string UniqueNo { get; set; } /// /// 心跳间隔 /// [SugarColumn(ColumnDescription = "心跳检查")] public int HeartbeatInterval { get; set; } /// /// 品牌 /// [SugarColumn(ColumnDescription = "品牌")] public string Brand { get; set; } /// /// 供应商 /// [SugarColumn(ColumnDescription = "供应商")] public string Supplier { get; set; } /// /// 设备功能 /// [SugarColumn(ColumnDataType = "varchar(150)", IsJson = true, ColumnDescription = "设备功能")] public List Funcs { get; set; } /// /// 部署点 /// [SugarColumn(ColumnDescription = "部署点")] public string DeployPlace { get; set; } /// /// 部署坐标 /// [SugarColumn(IsJson = true, ColumnDescription = "部署坐标")] public string DeployPosition { get; set; } /// /// 部署方向 /// [SugarColumn(ColumnDescription = "部署方向")] public string DeployDirection { get; set; } /// /// 模板code /// [SugarColumn(ColumnDescription = "模板code")] public Guid TemplateCode { get; set; } /// /// 连接信息 /// [SugarColumn(ColumnDescription = "连接信息")] public string ConnectionInfo { get; set; } /// /// 最后使用人 /// [SugarColumn(ColumnDescription = "最后使用人")] public DateTime LastLogId { get; set; } /// /// 最后使用日期 /// [SugarColumn(ColumnDescription = "最后使用日期")] public DateTime LastLogDateTime { get; set; } /// /// 是否启用 /// [SugarColumn(ColumnDataType = "bit", ColumnDescription = "是否启用")] public bool Enable { get; set; } /// /// 设别状态 /// [SugarColumn(ColumnDescription = "设别状态")] public string Status { get; set; } public string TenantId { get; set; } }