Files
IOT_API/Model/Entity/Asset/EquipmentStatusRecordEntity.cs
T

43 lines
1.1 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using SqlSugar;
namespace Model.Entity.Asset
{
/// <summary>
/// 设备台账状态记录(设备状态管理:状态变更历史记录,并可按时间筛选查询)
/// </summary>
public class EquipmentStatusRecordEntity : BaseEntity
{
/// <summary>
/// 设备Id(关联 EquipmentEntity.Id
/// </summary>
public long EquipmentId { get; set; }
/// <summary>
/// 变更前状态
/// </summary>
public EquipmentStatusEnum FromStatus { get; set; }
/// <summary>
/// 变更后状态
/// </summary>
public EquipmentStatusEnum ToStatus { get; set; }
/// <summary>
/// 状态变更时间
/// </summary>
public DateTime ChangeTime { get; set; }
/// <summary>
/// 操作人
/// </summary>
[SugarColumn(Length = 50, IsNullable = true)]
public string? Operator { get; set; }
/// <summary>
/// 变更原因/备注
/// </summary>
[SugarColumn(Length = 500, IsNullable = true)]
public string? Remark { get; set; }
}
}