add is_folder notion

This commit is contained in:
m
2026-07-13 13:25:02 +02:00
parent 68ec7509f7
commit 968605b3d1
6 changed files with 48 additions and 5 deletions
+5
View File
@@ -16,6 +16,11 @@ INSERT INTO files (id, name, mime_type, size, storage_key, checksum, created_at,
VALUES ($1, $2, $3, $4, $5, $6, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP)
RETURNING *;
-- name: CreateFolder :one
INSERT INTO files (id, name, created_at, updated_at)
VALUES ($1, $2, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP)
RETURNING *;
-- name: UpdateFile :exec
UPDATE files
SET name = $1, mime_type = $2, ocr_text = $3, updated_at = CURRENT_TIMESTAMP