import { Department } from "@prisma/client";
import { TreeDataNode} from "../types";
import { StaffDto } from "./staff";
import { TermDto } from "./term";

export interface DeptSimpleTreeNode extends TreeDataNode {
	hasStaff?: boolean;
}
export type DepartmentDto = Department & {
    parent: DepartmentDto;
    children: DepartmentDto[];
    hasChildren: boolean;
    staffs: StaffDto[];
    terms: TermDto[];
};