using Datory.Annotations;
namespace GxPress.Entity
{
///
/// 部门
///
[DataTable("tede_department")]
public class Department : Datory.Entity
{
///
/// 部门名称
///
[DataColumn]
public string Name { get; set; }
///
/// 父级部门id
///
[DataColumn]
public int ParentId { get; set; }
///
/// 部门主管id
///
[DataColumn]
public int LeaderId { get; set; }
///
/// 排序
///
[DataColumn]
public int Sort { get; set; }
///
/// 用户成员
///
///
public int UserCount { get; set; }
}
///
/// 部门
///
[DataTable("tede_department_user")]
public class DepartmentUser : Datory.Entity
{
///
/// 部门Id
///
[DataColumn]
public int DepartmentId { get; set; }
///
/// 用户ID
///
[DataColumn]
public int UserId { get; set; }
}
}