using SqlSugar; using System; using System.Collections.Generic; using System.Linq; using System.Security.Principal; using System.Text; using System.Threading.Tasks; using static IoTIntegrationPlatform.Model.Enum.EnumDevice; namespace IoTIntegrationPlatform.Model.Model { /// /// 平台设备信息 /// [SugarTable("platform_device_info")] public class PlatformDeviceInfo { /// /// 平台id /// [SugarColumn(ColumnName = "platform_id", IsPrimaryKey = true, IsIdentity = true)] public int PlatformId { get; set; } /// /// 平台编号 /// [SugarColumn(ColumnName = "platform_code")] public string PlatformCode { get; set; } /// /// 平台型号id /// [SugarColumn(ColumnName = "platform_model_id")] public int PlatformModelId { get; set; } /// /// 客户id /// [SugarColumn(ColumnName = "customer_id")] public int CustomerId { get; set; } /// /// 生效时间 /// [SugarColumn(ColumnName = "effective_time")] public DateTime EffectiveTime { get; set; } /// /// 到期时间 /// [SugarColumn(ColumnName = "expire_time")] public DateTime ExpireTime { get; set; } /// /// 设备MAC /// [SugarColumn(ColumnName = "device_mac")] public string DeviceMac { get; set; } /// /// 心跳时间 /// [SugarColumn(ColumnName = "heartbeat_time")] public DateTime HeartbeatTime { get; set; } /// /// 设备状态 /// [SugarColumn(ColumnName = "device_state")] public EnumDeviceStatus DeviceState { get; set; } /// /// 平台状态 1:未激活 2:正常 3:已到期 /// [SugarColumn(ColumnName = "platform_status")] public EnumPlatformStatus PlatformStatus { get; set; } /// /// 备注 /// [SugarColumn(ColumnName = "remark")] public string Remark { get; set; } /// /// 创建时间 /// [SugarColumn(ColumnName = "create_time")] public DateTime CreateTime { get; set; } /// /// 修改时间 /// [SugarColumn(ColumnName = "update_time")] public DateTime UpdateTime { get; set; } /// /// 操作人id /// [SugarColumn(ColumnName = "operation_id")] public int OperationId { get; set; } /// /// 操作人名称 /// [SugarColumn(ColumnName = "operation_name")] public string OperationName { get; set; } /// /// 是否有效 0:否 1:是 /// [SugarColumn(ColumnName = "is_valid")] public bool IsValid { get; set; } } }