namespace Admin.NET.Core; /// /// 系统机构表 /// [SugarTable(null, "系统机构表")] [SystemTable] public class SysOrg : EntityTenant { /// /// 父Id /// [SugarColumn(ColumnDescription = "父Id")] public long Pid { get; set; } /// /// 名称 /// [SugarColumn(ColumnDescription = "名称", Length = 64)] [Required, MaxLength(64)] public virtual string Name { get; set; } /// /// 编码 /// [SugarColumn(ColumnDescription = "编码", Length = 64)] [MaxLength(64)] public string? Code { get; set; } /// /// 机构类型 /// [SugarColumn(ColumnDescription = "机构类型", Length = 64)] [MaxLength(64)] public string? OrgType { get; set; } /// /// 排序 /// [SugarColumn(ColumnDescription = "排序")] public int OrderNo { get; set; } = 100; /// /// 备注 /// [SugarColumn(ColumnDescription = "备注", Length = 128)] [MaxLength(128)] public string? Remark { get; set; } /// /// 状态 /// [SugarColumn(ColumnDescription = "状态")] public StatusEnum Status { get; set; } = StatusEnum.Enable; /// /// 机构子项 /// [SugarColumn(IsIgnore = true)] public List Children { get; set; } }