18 lines
542 B
C#
18 lines
542 B
C#
using FreeSql.DataAnnotations;
|
|
using F9WebAiTest.Domain.Common;
|
|
|
|
namespace F9WebAiTest.Domain.Entities;
|
|
|
|
/// <summary>部门(树形结构)</summary>
|
|
[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 禁用
|
|
}
|