Files
f9-web-ai-test/backend/F9WebAiTest.Domain/Entities/Department.cs
T
2026-10-08 10:43:59 +08:00

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 禁用
}