From 69b2e8eca1bfe1488ed719939b85c8376464c944 Mon Sep 17 00:00:00 2001 From: v0l Date: Wed, 29 Jul 2026 09:00:11 +0100 Subject: [PATCH] docs(operator): grant the usage breakdown tables to the DB user --- lnvps_operator/README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lnvps_operator/README.md b/lnvps_operator/README.md index 6f3f0bb4..24323eaa 100644 --- a/lnvps_operator/README.md +++ b/lnvps_operator/README.md @@ -195,13 +195,16 @@ environment wins when both are set. It reads nostr domains, apps, app clusters, app deployments and the subscription rows that decide whether a deployment is paid for, and it writes -to exactly one table: `app_deployment`. No inserts, no deletes, and it never -runs migrations, so it needs no DDL: +to three: the status and usage totals on `app_deployment`, and the per-service +and per-volume usage breakdown, which it rewrites each pass rather than +accumulating. It never runs migrations, so it needs no DDL: ```sql CREATE USER 'lnvps_operator'@'%' IDENTIFIED BY ''; GRANT SELECT ON lnvps.* TO 'lnvps_operator'@'%'; GRANT UPDATE ON lnvps.app_deployment TO 'lnvps_operator'@'%'; +GRANT INSERT, DELETE ON lnvps.app_deployment_service_usage TO 'lnvps_operator'@'%'; +GRANT INSERT, DELETE ON lnvps.app_deployment_volume_usage TO 'lnvps_operator'@'%'; ``` ```bash