using SqlSugar;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace Admin.NET.Core
{
///
/// 系统机构表
///
[SugarTable("sys_org", "系统机构表")]
[SqlSugarEntity]
public class SysOrg : EntityTenant
{
///
/// 父Id
///
[SugarColumn(ColumnDescription = "父Id")]
public long Pid { get; set; }
///
/// 名称
///
[SugarColumn(ColumnDescription = "名称", Length = 100)]
[Required, MaxLength(100)]
public string Name { get; set; }
///
/// 编码
///
[SugarColumn(ColumnDescription = "编码", Length = 50)]
[MaxLength(50)]
public string Code { get; set; }
///
/// 排序
///
[SugarColumn(ColumnDescription = "排序")]
public int Order { get; set; }
///
/// 备注
///
[SugarColumn(ColumnDescription = "备注", Length = 100)]
[MaxLength(100)]
public string Remark { get; set; }
///
/// 状态
///
[SugarColumn(ColumnDescription = "状态")]
public StatusEnum Status { get; set; } = StatusEnum.Enable;
///
/// 机构子项
///
[SugarColumn(IsIgnore = true)]
public List Children { get; set; }
}
}