namespace Tiobon.Core.Model;

/// <summary>
/// 部门表
/// </summary>
public class DepartmentRoot<Tkey> : RootEntityTkey<Tkey> where Tkey : IEquatable<Tkey>
{
    /// <summary>
    /// 上一级（0表示无上一级）
    /// </summary>
    public Tkey Pid { get; set; }

    [SugarColumn(IsIgnore = true)]
    public List<Tkey> PidArr { get; set; }
}
