53 lines
1.6 KiB
C#
53 lines
1.6 KiB
C#
using SqlSugar;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace YBDevice.Entity
|
|
{
|
|
/// <summary>
|
|
/// 设备分配记录
|
|
/// </summary>
|
|
[SugarTable("YB_DeviceAlloc", TableDescription = "设备分配记录", IsDisabledUpdateAll = false, IsDisabledDelete = true)]
|
|
public class YB_DeviceAlloc
|
|
{
|
|
/// <summary>
|
|
/// 主键
|
|
/// </summary>
|
|
[SugarColumn(IsPrimaryKey = true)]
|
|
public Guid Id { get; set; }
|
|
|
|
/// <summary>
|
|
/// 设备ID
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "设备ID", IndexGroupNameList = new string[] { "index_equid" })]
|
|
public int EquId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 分配人
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "分配人", IndexGroupNameList = new string[] { "index_frombusinessid" })]
|
|
public int FromBusinessId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 接收人
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "接收人", IndexGroupNameList = new string[] { "index_tobusinessid" })]
|
|
public int ToBusinessId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 类型,1-出货,2-分配,3-回收,4-激活
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "类型,1-出货,2-分配,3-回收,4-激活")]
|
|
public DeviceAllocType Type { get; set; }
|
|
|
|
/// <summary>
|
|
/// 创建时间
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "创建时间")]
|
|
public DateTime CreateTime { get; set; }
|
|
}
|
|
}
|