-- name: CreateFile :one
INSERT INTO files(file_name, file_path, original_name, folder_name, mime_type, file_size, file_url)
VALUES ($1, $2, $3, $4, $5, $6, $7)
RETURNING id,file_url,file_name;

-- name: ListFiles :many
SELECT *
FROM files
ORDER BY id
LIMIT $1 OFFSET $2;

-- name: CountFiles :one
SELECT COUNT(*)
FROM files;
