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 가능한 시각적 preview로 바꾸어 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 보조 생성 중 어디에 더 적합한지 알려줍니다.