44 lines
1.2 KiB
C#
44 lines
1.2 KiB
C#
using SqlSugar;
|
||
|
||
namespace Model.Entity.Asset
|
||
{
|
||
/// <summary>
|
||
/// 设备分类(资产分类:支持按实验室/楼层/部门/位置/产品等多级树形分类,可按类型筛选展示)
|
||
/// </summary>
|
||
public class EquipmentCategoryEntity : BaseEntity
|
||
{
|
||
/// <summary>
|
||
/// 父级分类Id(0表示顶级)
|
||
/// </summary>
|
||
public long ParentId { get; set; }
|
||
|
||
/// <summary>
|
||
/// 分类名称
|
||
/// </summary>
|
||
[SugarColumn(Length = 100, IsNullable = true)]
|
||
public string? Name { get; set; }
|
||
|
||
/// <summary>
|
||
/// 分类编码
|
||
/// </summary>
|
||
[SugarColumn(Length = 50, IsNullable = true)]
|
||
public string? Code { get; set; }
|
||
|
||
/// <summary>
|
||
/// 层级(1级、2级……,便于树形展示与筛选)
|
||
/// </summary>
|
||
public int Level { get; set; } = 1;
|
||
|
||
/// <summary>
|
||
/// 排序号
|
||
/// </summary>
|
||
public int Sort { get; set; }
|
||
|
||
/// <summary>
|
||
/// 备注
|
||
/// </summary>
|
||
[SugarColumn(Length = 500, IsNullable = true)]
|
||
public string? Remark { get; set; }
|
||
}
|
||
}
|