using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WIDESEA_Core.DB.Models;
namespace WIDESEA_Model.Models.WMSInfo
{
[SugarTable(nameof(Dt_Container), "容器管理")]
public class Dt_EquipmentAlarmInfor: BaseEntity
{
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
public int Id { get; set; }
///
/// 设备名称
///
[SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "设备名称")]
public string RobotName { get; set; }
///
/// 设备编码
///
[SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "设备编码")]
public string RobotCode { get; set; }
///
/// 设备状态
///
[SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "设备状态")]
public string Status { get; set; }
///
/// 同步时间
///
[SugarColumn(IsNullable = false, ColumnDescription = "同步时间")]
public DateTime SyncTime { get; set; } = DateTime.Now;
}
public enum DeviceStatus
{
Disabled = 0, // 不可用
Enable = 1, // 可用
Error = 2, // 发生错误
Charging = 3, // 充电中
Occupied = 4, // 被占用
Down = 5 // 离库
}
}