-- name: GetStatus :one
SELECT * FROM statuses
WHERE id = ? LIMIT 1;

-- name: ListStatuses :many
SELECT * FROM statuses
ORDER BY name
LIMIT ? OFFSET ?;

-- name: CreateStatus :execresult
INSERT INTO statuses (name, color) VALUES (?, ?);

-- name: UpdateStatus :exec
UPDATE statuses SET name = ?, color = ? WHERE id = ?;

-- name: DeleteStatus :exec
DELETE FROM statuses WHERE id = ?;