Chapter 25
SQL / Schema Generator
PROFoundation
Design → Diff → Migration → Review → Apply — never NL→production DB.
- Describe / Design
- Schema Proposal
- Diff
- Migration SQL (Draft)
- Review
- Stress Test
- Apply (capability gateway)
What it is
Describe a schema in plain English or a visual designer. Forge builds a canonical schema, diffs it, and drafts PostgreSQL migrations.
Important notes / limitations
Natural language never mutates a database.
Destructive SQL needs strong confirmation. Production is never inferred.
Optional Supabase RLS suggestions always require Review.
Feature registry still lists generator as Planned; lib/forge-schema foundation landed on draft PR #5 — treat as foundation until weekend DB QA.