This repository has been archived on 2024-08-23. You can view files and clone it, but cannot push or open issues or pull requests.
project/sql/get_folders.sql
2024-08-02 12:32:23 +03:00

11 lines
195 B
SQL

SELECT
f.folder_id,
owner_id,
folder_name,
created_at
FROM
folders f
JOIN permissions p ON f.folder_id = p.folder_id
WHERE
parent_folder_id = $1
AND p.user_id = $2