Schema Studio · alpha · read-only
See your schema.
Find the normalization debt.
Ship the migration.
A read-only Postgres analyzer with three readings — formal normalization, deterministic linter, and Claude Opus 4.7 — exporting clean migrations into Alembic, Flyway, Prisma, Drizzle, or raw SQL.
The debt nobody owns
Every Postgres database accumulates the same five mistakes.
Denormalized customer columns on orders.
Customer name, email, phone copied across every order row. The orders table is now 14 columns wide and three of them are stale.
Foreign keys without indexes.
Cascade deletes scan the whole child table. Joins to the parent are seq-scans. Postgres won't tell you — pg_stat_user_indexes will, eventually.
Identity that should've been a UUID.
Or the other way around. The choice was made when the table was empty; it's load-bearing now.
Orphan tables.
Nobody references them. Nobody dares delete them. They show up in every backup.
Schemas that drifted from the docs.
The schema file in the repo is from last year. Production has six extra columns and a comment that says "TODO: rename".
And nobody owns finding them.
Most teams discover these at 2am, in production, in a Slack thread that starts with "we have a problem."
How it reads your schema
Three readings. One verdict.
Each schema gets read three independent ways. When all three agree, the score drops fast. When they disagree, you see the conflict — and decide.
Formal normalization
Heuristic functional-dependency inference, then 2NF / 3NF / BCNF checkers. The math — applied to the actual shape of your schema, not a textbook example.
Deterministic · explainable
Deterministic linter
Ten rules borrowed from pg_lint, schemaspy, azimutt, and bytebase — plus our own. Missing PKs, unindexed FKs, naming inconsistency, wide tables. Same answer every run.
Rule-based · reproducible
Claude critique
Opus 4.7 reviews the whole schema for things the rules don't see — design choices, framework smells, future scaling risks. Confidence labels on every finding.
AI · probabilistic
The canvas
A canvas you actually want to look at.
Auto-layouted with ELK. Foreign-key edges anchor to specific column rows. Glyphs for primary key, identity, unique, nullable and non-nullable. Click any table in the side panel and the viewport flies to it.
- · Per-column foreign-key handles (not table-to-table)
- · Auto layout · Copy as SQL · PNG export
- · Linter findings highlighted in-line
- · Orphan tables · flagged · clean — all visible
Schema score
−18 critical · −8 warning · −2 info
- Normalizerorders.customer_* is 3NF violationcritical
- Linterorders.user_id missing supporting indexwarning
- Claudeorders.status should be an enuminfo
Findings, scored
Every finding has a source, a severity, and a fix.
We merge across the three readings into a single bucketed list so the same issue from three sources doesn't pollute your inbox. A schema score comes out the other side, with a letter grade and a clear penalty breakdown.
Want to argue with a finding? Open it, ask Claude a follow-up in the same drawer. Streaming responses, schema context pre-cached.
Hand-off, never hand-in
Drafted migrations. Your tooling. Your call.
Every finding can be exported as a migration draft. Pick a target framework and we hand you a folder of files — with safety classification, lock estimates, and a PR body that explains the change to your reviewer.
- destructive · two-phase deploy recommended
- concurrent · safe under load, runs outside a transaction
- locking · takes ACCESS EXCLUSIVE briefly — schedule it
- irreversible · restore from backup if you change your mind
-- 003_extract_customer_from_orders.sql -- Source: NORM-3NF-orders.customer_* -- Classification: additive, locking, two-phase BEGIN; CREATE TABLE customers ( id uuid PRIMARY KEY DEFAULT gen_random_uuid(), email varchar(255) NOT NULL UNIQUE, name text, phone text, address text, created_at timestamptz NOT NULL DEFAULT now() ); ALTER TABLE orders ADD COLUMN customer_id uuid REFERENCES customers(id); -- Backfill in app code, then drop the denormalized columns -- in a second migration. See pr_body.md for the playbook. COMMIT;
The killer ingest path
Zero credentials. Forever.
Run one SQL block in your existing tool. Paste the JSON back. We get your schema; you keep your DSN. Sample-data mode is opt-in only and scrubbed in your browser before upload.
- · The SQL is readable. Inspect it before running.
- · Outputs a single JSON column. No row data, ever.
- · Works in psql, pgAdmin, DataGrip, Supabase, Neon.
-- Schema Studio · Path C (zero credentials) -- Run this in psql, paste the JSON. We never see row data. WITH t AS (...) SELECT json_build_object( 'tables', ..., 'columns', ..., 'primary_keys', ..., 'foreign_keys', ..., 'indexes', ..., 'checks', ... ) AS schema_studio_payload;
Engineered to be untrusted
What we never hold.
Row data
We read schema metadata. Tables, columns, types, constraints. Never a row. Never a value from a row.
Database credentials
No DSN, no password, no read-only role in our database. The ingest path runs in your tooling and emits JSON.
Write access
We never auto-apply a migration. We never connect to your database. Every export is a file you run yourself.
Snapshots are content-addressed and stored encrypted at rest. Anthropic keys are rotated quarterly. Logging excludes paste-text bodies. Read the full threat model for the complete invariant list.