namespace Model
{
///
/// 部门管理 sys_dept
///
[SugarTable("sys_dept", "部门管理")]
[Tenant("0")]
public class SysDept
{
///
/// 部门ID
///
[SugarColumn(ColumnDescription = "部门ID", IsPrimaryKey = true, IsIdentity = true, ColumnName = "dept_id")]
public long deptId { get; set; }
///
/// 部门名称
///
[SugarColumn(ColumnDescription = "部门名称", Length = 50, ColumnName = "name")]
public string? name { get; set; }
///
/// 排序
///
[SugarColumn(ColumnDescription = "排序", ColumnName = "sort_order")]
public int sortOrder { get; set; }
///
/// 创建人
///
[SugarColumn(ColumnDescription = "创建人", Length = 64, ColumnName = "create_by")]
public string? CreateBy { get; set; }
///
/// 修改人
///
[SugarColumn(ColumnDescription = "修改人", Length = 64, ColumnName = "update_by")]
public string? UpdateBy { get; set; }
///
/// 创建时间
///
[SugarColumn(ColumnDescription = "创建时间", ColumnName = "create_time")]
public DateTime? CreateTime { get; set; }
///
/// 修改时间
///
[SugarColumn(ColumnDescription = "修改时间", ColumnName = "update_time")]
public DateTime? UpdateTime { get; set; }
///
/// 删除标志
///
[SugarColumn(ColumnDescription = "删除标志", Length = 1, ColumnName = "del_flag")]
public string? DelFlag { get; set; }
///
/// 父级部门ID
///
[SugarColumn(ColumnDescription = "父级部门ID", ColumnName = "parent_id")]
public long parentId { get; set; }
///
/// 子菜单
///
public List children = new();
}
}