namespace ZR.Model.System
{
///
/// 部门表
///
[SugarTable("sys_dept", "部门配置表")]
[Tenant("0")]
public class SysDept : SysBase
{
///
/// 部门ID
///
[SugarColumn(IsIdentity = true, IsPrimaryKey = true)]
[JsonConverter(typeof(ValueToStringConverter))]
public long DeptId { get; set; }
///
/// 父部门ID
///
public long ParentId { get; set; }
///
/// 祖级列表
///
public string Ancestors { get; set; }
///
/// 部门名称
///
[SugarColumn(Length = 30, ExtendedAttribute = ProteryConstant.NOTNULL)]
public string DeptName { get; set; }
///
/// 显示顺序
///
public int OrderNum { get; set; }
///
/// 负责人
///
[SugarColumn(Length = 30)]
public string Leader { get; set; }
///
/// 联系电话
///
[SugarColumn(Length = 11)]
public string Phone { get; set; }
///
/// 邮箱
///
[SugarColumn(Length = 50)]
public string Email { get; set; }
///
/// 部门状态:0正常,1停用
///
[SugarColumn(DefaultValue = "0")]
public int Status { get; set; }
///
/// 删除标志(0代表存在 2代表删除)
///
[SugarColumn(DefaultValue = "0")]
public int DelFlag { get; set; }
///
/// 子菜单
///
public List children = new();
}
}