files responses

This commit is contained in:
m
2026-07-13 16:35:01 +02:00
parent 968605b3d1
commit 3c66fcabfc
9 changed files with 121 additions and 58 deletions
+5
View File
@@ -6,6 +6,11 @@ WHERE id = $1 LIMIT 1;
SELECT * FROM files
ORDER BY created_at DESC;
-- name: ListFolders :many
SELECT * FROM files
WHERE is_folder = true
ORDER BY created_at DESC;
-- name: ListFilesByID :many
SELECT * FROM files
WHERE id = ANY($1::text[])