using YD_Event.Core.Enum;
namespace YD_Event.Core.Entities;
///
/// 组织机构信息表
///
public class SysOrganization : Entity, IAvailability, ISortable, ICreatedUserId, ISoftDelete, ICreatedTime
{
///
/// 父级Id
///
public long? ParentId { get; set; }
///
/// 部门名称
///
[SugarColumn(Length = 32)]
public string Name { get; set; }
///
/// 部门编码
///
[SugarColumn(Length = 64)]
public string Code { get; set; }
///
/// 可用状态
///
public AvailabilityStatus Status { get; set; }
///
/// 排序值(值越小越靠前)
///
public int Sort { get; set; }
///
/// 备注
///
[SugarColumn(Length = 256)]
public string? Remark { get; set; }
///
/// 创建人
///
public long CreatedUserId { get; set; }
///
/// 标记删除
///
public bool DeleteMark { get; set; }
///
/// 创建时间
///
public DateTime CreatedTime { get; set; }
///
/// 子部门
///
[SugarColumn(IsIgnore = true)]
public List Children { get; set; } = new();
}