feat(db): enforce runtime RLS boundaries

This commit is contained in:
2026-03-22 22:49:47 +04:00
parent 7665af0268
commit 97b5edcc0a
24 changed files with 2054 additions and 545 deletions

View File

@@ -4,7 +4,12 @@ LOG_LEVEL=info
PORT=3000
# Database
# Owner connection for migrations, seed, and schema checks only
DATABASE_URL=postgres://postgres:postgres@127.0.0.1:54322/postgres
# Runtime connection used by mini app and authenticated user-triggered API flows
APP_DATABASE_URL=postgres://housebot_app:housebot_app@127.0.0.1:54322/postgres
# Runtime connection used by bot ingestion, reminders, schedulers, and other worker flows
WORKER_DATABASE_URL=postgres://housebot_worker:housebot_worker@127.0.0.1:54322/postgres
DB_SCHEMA=public
# Telegram