from typing import Union
import modules.database.schemas.nodes.users as user_schemas
import modules.database.schemas.nodes.workers.workers as worker_schemas
import modules.database.schemas.nodes.schools.schools as school_schemas

user_owners = Union[
    user_schemas.UserNode
]

worker_owners = Union[
    worker_schemas.TeacherNode,
    worker_schemas.StudentNode,
    worker_schemas.SchoolAdminNode,
    worker_schemas.DeveloperNode,
    worker_schemas.SuperAdminNode,
]

school_owners = Union[
    school_schemas.SchoolNode,
    school_schemas.DepartmentNode,
    school_schemas.SubjectClassNode,
    school_schemas.RoomNode,
]

owners = Union[
    user_owners,
    worker_owners,
    school_owners,
]