display date

This commit is contained in:
m
2026-07-12 18:24:58 +02:00
parent da780baf82
commit 778830eb36
7 changed files with 122 additions and 31 deletions
+5
View File
@@ -6,6 +6,11 @@ WHERE id = ? LIMIT 1;
SELECT * FROM files
ORDER BY created_at DESC;
-- name: ListFilesByID :many
SELECT * FROM files
WHERE id IN (SELECT value FROM json_each(?))
ORDER BY created_at DESC;
-- name: CreateFile :one
INSERT INTO files (id, name, mime_type, size, storage_key, checksum, created_at, updated_at)
VALUES (?, ?, ?, ?, ?, ?, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP)