Database Designer

•
1.1k
•

Analyzes relational schemas for normalization gaps, optimizes query indexes, and generates safe forward and rollback migrations.

Database Designer provides automated schema analysis, index tuning, and migration generation for PostgreSQL and MySQL databases. It inspects DDL and JSON schemas to flag normalization issues (1NF through BCNF), missing foreign keys, and constraint gaps while generating Mermaid entity-relationship diagrams. By evaluating schemas against real-world query workloads, the skill suggests high-impact composite and covering indexes while identifying redundant index bloat. It also constructs reversible forward and rollback migration plans, including zero-downtime expand-contract strategies for large or high-traffic production tables.

Key Features

01Generates visual Mermaid entity-relationship diagrams (ERDs) directly from DDL
02Identifies overlapping, redundant, and unused indexes to protect write throughput
03Audits SQL schemas for normalization smells (1NF–BCNF), missing keys, and constraint gaps
04Generates forward and rollback SQL migrations with zero-downtime expand-contract support
05Recommends single, composite, and covering indexes optimized by query selectivity
061,132 GitHub stars

Use Cases

01Reviewing and auditing existing SQL schemas before deploying database changes
02Diffing schema versions to create automated forward and rollback migration scripts
03Tuning index strategies to resolve slow queries and eliminate redundant indexes