What problem does it solve? Designing database schemas, writing efficient SQL or MongoDB queries, and handling migrations, backups, and performance tuning require deep knowledge of two very different database systems, and mistakes lead to slow queries and fragile schemas. ## Core Features & Use Cases - Schema Design Guidance: Step-by-step rules for OLTP transactional tables, OLAP star schemas with fact/dimension tables, and incremental ETL watermark patterns, with stack-specific rules for MySQL, PostgreSQL, BigQuery, SQLite, and Cloudflare D1. - Migration & Backup Scripts: Python utilities to generate and apply migrations with rollback support, and to create compressed, verified backups for both MongoDB and PostgreSQL. - Performance Analysis: A script that detects slow queries, finds tables with excessive sequential scans, and recommends indexes for both database engines. - Use Case: Ask the assistant to design an orders schema for PostgreSQL, then run the performance check script against your database to get index recommendations for slow queries. ## Quick Start Ask the assistant to design a PostgreSQL schema for an orders and order_items feature with proper indexes and naming conventions.