DiagramPreview
高度なプレビューLive previewExportDeveloper tool

DBML to ER Diagram

Convert DBML table definitions and refs into a Mermaid ER diagram.

サンプル
Rendered preview準備完了
The preview will appear here.

関連ツールで続ける

このプレビューを近いワークフローに移して、変換、デバッグ、エクスポートを続けます。

SQL to ER Diagram

Convert CREATE TABLE SQL into a Mermaid ER diagram.

開く
Prisma Schema Diagram

Convert Prisma model blocks into an ER-style schema diagram.

開く
JSON Schema Visualizer

Inspect JSON Schema properties, types, required fields, and composition groups.

開く

使い方

  1. 1Paste source or load a sample.
  2. 2Review the rendered preview or structured output.
  3. 3Copy code, export images, or download generated files.

主な用途

AI-generated diagram validationDeveloper docs and README workflowsArchitecture, monitoring, and config review

FAQ

このツールはブラウザで動作しますか?

はい。ほとんどのプレビュー、検証、エクスポートはブラウザ内で行われます。AI ツールは設定された API に prompt のみ送信します。

公開前に何を確認すべきですか?

図やファイルが実際の流れを表しているか、ラベルが読めるか、機密データが除去されているか、SVG/PNG export が review しやすいかを確認してください。

ドキュメント作成にどう役立ちますか?

技術テキストやファイルを review しやすい視覚プレビューに変換し、README、ADR、runbook、issue、API docs からリンクできます。

DBML to ER Diagram is designed for developer documentation, AI-generated diagram validation, and engineering configuration visualization.

It helps convert source text, config, or AI output into a previewable and exportable result.

Demo: convert DBML refs into ER relationships

DBML is already readable, but an ER preview helps product and backend reviewers see table relationships, ownership, and join tables faster.

  • Include Ref lines for every relationship you want in the diagram.
  • Use table groups or naming conventions for bounded contexts.
  • Preview before pasting schema notes into product docs.
Table users { id int [pk] email varchar }
Table orders { id int [pk] user_id int }
Ref: orders.user_id > users.id

Schema review: use DBML diagrams to discuss cardinality

The diagram should help reviewers ask whether a relationship is one-to-one, one-to-many, or many-to-many, and whether the table design supports the product rule.

  • Look for join tables with missing uniqueness.
  • Check whether nullable refs match real optional behavior.
  • Add notes for soft deletes and tenant boundaries.
Table memberships { user_id int org_id int role varchar }
Ref: memberships.user_id > users.id
Ref: memberships.org_id > organizations.id

DBML to ER Diagram のレビューチェックリスト

ドキュメント、PR、障害メモ、引き継ぎの前にソースを視覚的に確認する場合は DBML to ER Diagram を使えます。Convert DBML table definitions and refs into a Mermaid ER diagram.

エクスポート前に、ラベルの読みやすさ、関係の正しさ、機密情報の有無、編集後のプレビュー整合性を確認してください。

制限とトラブルシュート

プレビューに失敗したら、入力を最小の完全な例に縮小し、構文を確認してから少しずつ戻してください。

プレビューはレビュー面であり、唯一の正解ではありません。重要な出力は人が確認してください。

試せるサンプル入力

  • Commerce: Table users { id int [pk] email varchar } Table orders { id int [pk] user_id int } Ref: orders.user_id > users.id
  • Blog: Table authors { id int [pk] name varchar } Table posts { id int [pk] author_id int title varchar } Ref: posts.author_id > authors.id
  • SaaS: Table accounts { id int [pk] name varchar } Table members { id int [pk] account_id int email varchar } Ref: members.account_id > accounts.id

ツール成熟度

高度なプレビュー

高度なパーサー

このツールは開発者向け入力から構造と関係を抽出します。複雑なケースは元ソースで確認してください。

ラベルは、安定エクスポート、深いデバッグ、素早い解析、AI 支援生成のどれに向くかを示します。