# As a condition of accessing this website, you agree to abide by the following # content signals: # (a) If a Content-Signal = yes, you may collect content for the corresponding # use. # (b) If a Content-Signal = no, you may not collect content for the # corresponding use. # (c) If the website operator does not include a Content-Signal for a # corresponding use, the website operator neither grants nor restricts # permission via Content-Signal with respect to the corresponding use. # The content signals and their meanings are: # search: building a search index and providing search results (e.g., returning # hyperlinks and short excerpts from your website's contents). Search does not # include providing AI-generated search summaries. # ai-input: inputting content into one or more AI models (e.g., retrieval # augmented generation, grounding, or other real-time taking of content for # generative AI search answers). # ai-train: training or fine-tuning AI models. # use: how AI systems may consume the content (immediate, reference, or full). # ANY RESTRICTIONS EXPRESSED VIA CONTENT SIGNALS ARE EXPRESS RESERVATIONS OF # RIGHTS UNDER ARTICLE 4 OF THE EUROPEAN UNION DIRECTIVE 2019/790 ON COPYRIGHT # AND RELATED RIGHTS IN THE DIGITAL SINGLE MARKET. # BEGIN Cloudflare Managed content User-agent: * Content-Signal: search=yes,ai-train=no,use=reference Allow: / # Training crawlers User-agent: Amazonbot Disallow: / User-agent: Applebot-Extended Disallow: / User-agent: Bytespider Disallow: / User-agent: CCBot Disallow: / User-agent: ClaudeBot Disallow: / User-agent: Diffbot Disallow: / User-agent: Google-Extended Disallow: / User-agent: GPTBot Disallow: / User-agent: omgili Disallow: / User-agent: anthropic-ai Disallow: / User-agent: Claude-Web Disallow: / User-agent: cohere-ai Disallow: / User-agent: MistralAI-Training Disallow: / User-agent: meta-externalagent Disallow: / User-agent: GoogleOther Disallow: / User-agent: Baiduspider Disallow: / User-agent: PetalBot Disallow: / User-agent: AwarioSmartBot User-agent: AwarioRssBot Disallow: / User-agent: Google-CloudVertexBot Disallow: / User-agent: QualifiedBot Disallow: / User-agent: Cotoyogi Disallow: / User-agent: ICC-Crawler Disallow: / User-agent: atlassian-bot Disallow: / User-agent: FishBot Disallow: / User-agent: BorderxBot Disallow: / User-agent: NavuBot Disallow: / User-agent: SemrushBot-SWA Disallow: / User-agent: WARDBot Disallow: / User-agent: magpie-crawler Disallow: / User-agent: KimiBot Disallow: / User-agent: CitibotSiteCrawler Disallow: / # END Cloudflare Managed Content ERDHub — Collaborative Database Diagram Editor
Now in Public Beta

Design database schemas
visually & collaboratively

Write schema in a clean DSL, see it as a live ERD diagram, and export production-ready SQL. Real-time collaboration built in.

Free forever. No credit card required.

schema.erd
DSL ERD SQL
1
2
3
4
5
6
7
8
9
10
11
12
13
Table users {
  id int [pk, increment]
  username varchar [unique]
  email varchar [not null]
  created_at timestamp [default: `now()`]
}

Table posts {
  id int [pk, increment]
  title varchar [not null]
  user_id int [ref: > users.id]
  status post_status
}
users id int pk username varchar email varchar created_at timestamp posts id int pk title varchar user_id int fk status enum
Export to
PostgreSQL MySQL SQL Server SQLite

Everything you need to
design databases

From quick prototyping to team-wide schema management — ERDHub adapts to your workflow.

DSL-First Editor

Write schemas in a clean, readable syntax with syntax highlighting. Tables, relationships, enums, indexes — all in code.

Live ERD Canvas

See your schema as an interactive diagram in real time. Drag tables, auto-layout with 3 algorithms, and export as PNG or SVG.

Real-Time Collaboration

Edit diagrams together with live cursors, presence indicators, and CRDT-powered conflict-free syncing. No merge conflicts ever.

Multi-Dialect SQL

Export production-ready DDL for PostgreSQL, MySQL, SQL Server, and SQLite. Dialect-specific types, quoting, and syntax.

Import & Export

Import existing SQL schemas or start from scratch. Export to PNG, SVG, or production SQL with a single click.

Version History

Auto-saved snapshots with 90-day retention. Label, restore, or fork from any version. Never lose your work.

How it works

Three steps to your first database diagram.

1

Write your schema

Define tables, columns, relationships, and enums in ERDHub's clean DSL. Or import from existing SQL files.

2

Visualize the diagram

Your schema renders as an interactive ERD canvas in real time. Drag, zoom, auto-layout, and organize visually.

3

Export & collaborate

Export production-ready SQL for your target dialect. Share with your team and edit together in real time.

Simple, transparent pricing

Start free. Upgrade when you need more power.

Free

$0 forever

For personal projects and learning.

Get started
  • Unlimited diagrams
  • All 4 SQL dialects
  • Public share links
  • Up to 4 collaborators
  • PNG & SVG export
Most Popular

Pro

$8 /month

For professionals who need more.

Start free trial
  • Everything in Free
  • Password-protected links
  • Private diagrams
  • Unlimited collaborators
  • Version history (90 days)
  • SQL import

Team

$12 /seat/month

For teams that design together.

Start free trial
  • Everything in Pro
  • Workspaces with RBAC
  • Seat-based billing
  • Team member management
  • Shared project access
  • Admin controls