using FreeSql.DataAnnotations; using F9WebAiTest.Domain.Common; namespace F9WebAiTest.Domain.Entities; /// 部门(树形结构) [Table(Name = "Departments")] public class Department : BaseEntity { public string Name { get; set; } public string Code { get; set; } = ""; // 部门编码 public long? ParentId { get; set; } public long? LeaderId { get; set; } public string Phone { get; set; } = ""; public int Sort { get; set; } public int Status { get; set; } = 1; // 1 启用 0 禁用 }