feat(server): Loader/Recorder на Store, wiring cmd/server (config→migrate→pool→api)

This commit is contained in:
vasyansk committed 2026-07-03 14:41:09 +07:00
1 parent 05dc586646
commit 763919d23f
5 files changed
+232

No files matched your search

+7
View File
@@ -11,3 +11,10 @@ SELECT * FROM domains WHERE project_id = $1 ORDER BY created_at;
-- name: DeleteDomain :exec
DELETE FROM domains WHERE id = $1 AND project_id = $2;
-- name: LoadDomainFull :one
SELECT d.zone_id, a.provider, a.secret_enc, t.doc
FROM domains d
JOIN provider_accounts a ON a.id = d.provider_account_id
LEFT JOIN templates t ON t.id = d.template_id
WHERE d.id = $1;