Sys_Department.cs 923 B

12345678910111213141516171819202122232425262728293031323334
  1. 
  2. namespace OASystem.Domain.Entities.System
  3. {
  4. /// <summary>
  5. /// 部门表
  6. /// </summary>
  7. [SugarTable("Sys_Department")]
  8. public class Sys_Department: EntityBase
  9. {
  10. /// <summary>
  11. /// 公司Id
  12. /// </summary>
  13. [SugarColumn(IsNullable =true,ColumnDataType ="int")]
  14. public int CompanyId { get; set; }
  15. /// <summary>
  16. /// 部门code
  17. /// </summary>
  18. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(20)")]
  19. public string DepCode { get; set; }
  20. /// <summary>
  21. /// 部门名称
  22. /// </summary>
  23. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
  24. public string DepName { get; set; }
  25. /// <summary>
  26. /// 父级部门Id
  27. /// </summary>
  28. [SugarColumn(IsNullable = true, ColumnDataType = "int")]
  29. public int ParentDepId { get; set; }
  30. }
  31. }