-- name: CreateProcessingJob :one
INSERT INTO processing_jobs (
  file_id, job_type
) VALUES ($1,$2 )
RETURNING *;

-- name: StartProcessingJob :exec
UPDATE processing_jobs 
SET started = NOW(),
  status = "started"
WHERE id = $1;

-- name: FinishProcessingJob :exec
UPDATE processing_jobs
SET completed = NOW(),
  status = "completed"
WHERE id = $1;
