using Kurisu.AspNetCore.DataAccess.SqlSugar;
using SqlSugar;
namespace Dlhis.Entity.Basic.Entity
{
///
/// 部门
///
[SugarTable(TableName = "Department", TableDescription = "部门")]
public class DepartmentEntity : SugarBaseEntity
{
///
/// 部门号
///
[SugarColumn(ColumnDescription = "部门号", IsNullable = false, UniqueGroupNameList = new[] { "idx_Department_No" })]
public string No { get; set; }
///
/// 上级部门号
///
[SugarColumn(ColumnDescription = "上级部门号")]
public string PNo { get; set; }
///
/// 部门名称
///
[SugarColumn(ColumnDescription = "部门名称", IsNullable = false)]
public string Name { get; set; }
}
}