-- v2.3_metabase.sql
-- Mejora #5: Metabase KPIs
--
-- No schema changes required in tenant DB.
-- Metabase runs as a separate Docker container and connects
-- to PostgreSQL as a read-only BI user.
--
-- Prerequisites:
--   - Docker and docker-compose installed
--   - docker-compose.metabase.yml deployed
--   - scripts/setup_metabase.py executed
--
-- Post-deployment:
--   1. Start Metabase: docker compose -f docker-compose.metabase.yml up -d
--   2. Run setup: python3 scripts/setup_metabase.py
--   3. Access dashboard at http://<host>:3000
--
SELECT 'v2.3 metabase KPIs migration applied' as status;
