Forge User Manual

Chapter 25

SQL / Schema Generator

PROFoundation

Design → Diff → Migration → Review → Apply — never NL→production DB.

  1. Describe / Design
  2. Schema Proposal
  3. Diff
  4. Migration SQL (Draft)
  5. Review
  6. Stress Test
  7. 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.