feat: find api service by id

This commit is contained in:
2025-05-31 17:38:29 +02:00
parent 2f58c01c24
commit 05a234b7a5
2 changed files with 31 additions and 0 deletions

View File

@ -11,6 +11,11 @@ WHERE client_id = $1
AND is_active = true
LIMIT 1;
-- name: GetApiServiceId :one
SELECT * FROM api_services
WHERE id = $1
LIMIT 1;
-- name: ListApiServices :many
SELECT * FROM api_services
ORDER BY created_at DESC;