Files
IOT_API/Model/Entity/Asset/EquipmentCategoryEntity.cs

44 lines
1.2 KiB
C#
Raw Permalink 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 EquipmentCategoryEntity : BaseEntity
{
/// <summary>
/// 父级分类Id0表示顶级)
/// </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; }
}
}