Cloudflare D1 Schema Diagram: Draw It From the Local Wrangler File, an Export, or the Remote Database?
Disclosure: I build Schemity , a desktop ERD tool - this post is from our blog and uses it for the examples. TL;DR: Draw a Cloudflare D1 schema diagram from the remote database, because wrangler d1 migrations apply writes to a local file unless you add --remote .