We have below table structure.
clients -id -name projects -id -title -client_id project_type -id -name -parent_id project_type_cost -id -amount