TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Found a simple tool for database modeling: dbdiagram.io

244 pointsby vseplet19 days ago

29 comments

smusamashah18 days ago
I maintain an almost exhaustive list of text to diagram tools [1]. dbdiagram.io requires login to export.<p>Other dedicated text to database diagram tools are<p>1. Database Diagram Tool <a href="https:&#x2F;&#x2F;databasediagram.com&#x2F;app" rel="nofollow">https:&#x2F;&#x2F;databasediagram.com&#x2F;app</a><p>2. QuickDBD <a href="https:&#x2F;&#x2F;app.quickdatabasediagrams.com&#x2F;#&#x2F;" rel="nofollow">https:&#x2F;&#x2F;app.quickdatabasediagrams.com&#x2F;#&#x2F;</a><p>3. ERD Lab <a href="https:&#x2F;&#x2F;app.erdlab.io&#x2F;designer&#x2F;guest" rel="nofollow">https:&#x2F;&#x2F;app.erdlab.io&#x2F;designer&#x2F;guest</a> (Requires Login to Export)<p>[1]: <a href="https:&#x2F;&#x2F;xosh.org&#x2F;text-to-diagram&#x2F;" rel="nofollow">https:&#x2F;&#x2F;xosh.org&#x2F;text-to-diagram&#x2F;</a>
评论 #43812412 未加载
评论 #43810884 未加载
评论 #43906272 未加载
评论 #43813034 未加载
评论 #43810992 未加载
评论 #43811706 未加载
KronisLV18 days ago
This might be silly, but having tools like that built into MySQL Workbench, alongside both forward and backward engineering (get SQL from model and apply it, or get a model from an existing DB) is one of the reasons why I very much enjoyed working with it: <a href="https:&#x2F;&#x2F;dev.mysql.com&#x2F;doc&#x2F;workbench&#x2F;en&#x2F;wb-eer-diagrams-section.html" rel="nofollow">https:&#x2F;&#x2F;dev.mysql.com&#x2F;doc&#x2F;workbench&#x2F;en&#x2F;wb-eer-diagrams-secti...</a> (I might otherwise <i>often</i> prefer PostgreSQL, especially due to the procedural language and transactional DDL), also works fine with MariaDB for the most part<p>In most projects I&#x27;ve seen people just do some generic models (not even proper ED diagrams) and write some SQL migrations to be applied with something like dbmate or Flyway and call it a day, though working on DB schemas feels like one of the areas where model driven development actually makes a lot of sense and feels natural, if the tooling is there! Otherwise you end up with the actual schema and the models you make diverging slightly over time, either due to people forgetting to add stuff, or you yourself missing something. That&#x27;s also why I enjoy the likes of DbVisualizer for getting a nice overview about what&#x27;s actually in the schema: <a href="https:&#x2F;&#x2F;www.dbvis.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.dbvis.com&#x2F;</a>
rsecora18 days ago
I usually go with the FOSS <a href="https:&#x2F;&#x2F;pgmodeler.io" rel="nofollow">https:&#x2F;&#x2F;pgmodeler.io</a><p>Its feature-rich, albeit focused on Postgres. And it&#x27;s ability to compare database schemas makes updating and applying diffs much easier.
lucb1e18 days ago
Language in that gif reminds me of DOT, from apt install graphviz which is pretty widely used I think. Various tools I use (including some I wrote or worked on) output to DOT format because it&#x27;s so simple, and from there you tell the tool to make it into the appropriate format for your pdf report or webpage or so: `cat diagram.dot | dot -T png &gt; diagram.png`. The DOT format is not as simple as dbdiagram though! But it&#x27;s also not limited to database diagrams: <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;DOT_(graph_description_language)" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;DOT_(graph_description_languag...</a><p>In case someone wished this exists but for something other, or more versatile, than database diagrams, although dbdiagram as a product looks way more polished and integrated
评论 #43810666 未加载
jesperwe18 days ago
The FLOSS tool <a href="https:&#x2F;&#x2F;drawdb.vercel.app&#x2F;editor" rel="nofollow">https:&#x2F;&#x2F;drawdb.vercel.app&#x2F;editor</a> has been here on HN several times. IMHO also does a somewhat better job.
评论 #43809836 未加载
solids18 days ago
Mermaid is also great<p><a href="https:&#x2F;&#x2F;docs.mermaidchart.com&#x2F;blog&#x2F;posts&#x2F;7-er-diagram-examples-for-database-modeling-from-mermaid-ai" rel="nofollow">https:&#x2F;&#x2F;docs.mermaidchart.com&#x2F;blog&#x2F;posts&#x2F;7-er-diagram-exampl...</a>
评论 #43810803 未加载
评论 #43810082 未加载
vseplet19 days ago
While discussing data models, my colleague was sketching tables and their relationships in an editor: table A, table B, columns linking them.<p>He then generated SQL from the diagram and deployed the schema to PostgreSQL. The schema was shared and reviewed.<p>The tool is <a href="https:&#x2F;&#x2F;dbdiagram.io" rel="nofollow">https:&#x2F;&#x2F;dbdiagram.io</a><p>You can import&#x2F;export SQL and generate images of your schema.
评论 #43809330 未加载
bullen18 days ago
I made a database ORM editor too: <a href="https:&#x2F;&#x2F;tinspin.itch.io&#x2F;node" rel="nofollow">https:&#x2F;&#x2F;tinspin.itch.io&#x2F;node</a><p>Mine is a desktop Java app. that exports XML that then gets converted to SQL (create.sql)<p>and ORM Java sources with the matching SQL queries. No reflection, just code generation.<p>Should work with MySQL (MariaDB), Postgres and Oracle.
评论 #43810891 未加载
ozim18 days ago
Maybe it is me but I never find those relationships diagrams that useful.<p>When structure is obvious then it is obvious and I don’t need a diagram - when structure is convoluted diagram is such a mess anyway that it is not helping at all.
maCDzP18 days ago
I have found that ChatGTP and Claude are good at converting a picture of a schema to SQL. So I sketch the schema by hand and the LLM creates the SQL.<p>It can also save the picture as a mermaid text for future edits. Pretty neat.
评论 #43809475 未加载
评论 #43809694 未加载
bobbruno18 days ago
I have an issue with calling any of the diagrams created by all the tools mentioned &quot;ER Diagrams&quot;. Entities are not the same thing as tables, and Sr diagrams are not relational database table diagrams. A (semi) visual representation of a database schema of any size that&#x27;d require a visual representation is almost necessarily a mess, and doesn&#x27;t really help discussion or design. It is at best a faster indexing into the DDL for the tables.<p>What I&#x27;d love to have (but never saw an affordable tool) is the ability to work at different levels of abstraction: physical (which is what all tools here actually do), logical (hiding field details, normalization and de normalization, giving better business entity names, etc) and conceptual (to show how big picture concepts relate, domain boundaries, department dependencies&#x2F;relationships).<p>Just the physical representation does, for my purposes, little more than code highlighting.
nexo-v116 days ago
Looks cool, but a bit of a bummer it&#x27;s not open source. These days when I need to sketch out SQL&#x2F;database diagrams, I usually have an LLM generate Mermaid code for me — good enough for quick drafts.<p>If I want something cleaner or a little more &quot;presentation ready,&quot; I switch to d2 (<a href="https:&#x2F;&#x2F;d2lang.com&#x2F;tour&#x2F;sql-tables&#x2F;#basics" rel="nofollow">https:&#x2F;&#x2F;d2lang.com&#x2F;tour&#x2F;sql-tables&#x2F;#basics</a>). It&#x27;s got really simple syntax and does a great job laying out entity-relationship diagrams without much tweaking.
praetis18 days ago
That is a very nice tool! I might use it.<p>In case it&#x27;s useful to anyone in here, I wrote a little app at erdraw.com which is specifically designed to be a way to draw a data model in the notation of &quot;Mastering Data Modeling&quot; by Professor John Carlis. It serves somewhat different goals than these other tools. It prioritizes user understandability to be useful in conversations non-engineers. So it excludes technical details like data types and SQL.<p><a href="https:&#x2F;&#x2F;erdraw.com" rel="nofollow">https:&#x2F;&#x2F;erdraw.com</a>
bob102918 days ago
Tooling is a big reason I would reach for SQL Server over alternatives in many scenarios. Combining SSMS with 1-2 RedGate utilities and an Excel license is essentially the one ring of database management.<p>When you have a complex data model and need to constantly engage the business regarding it, having an easy way to transform, compare and visualize representations of the schema can mean the difference between ~3 clicks and a multi-day journey into the rabbit hole of shiny technology.<p>I would still reach for SQLite in any scenario where I am embedding the DB in software that I am distributing. But, if I need to stand up a database that multiple systems and users are all going to talk to, I am always going to advocate for spending a little bit of money.
评论 #43811460 未加载
isalmon18 days ago
If you need it for your warehouse (Snowflake&#x2F;Databricks) - take a look at SqlDBM: <a href="https:&#x2F;&#x2F;sqldbm.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;sqldbm.com&#x2F;</a>
bradleyy18 days ago
It&#x27;s really convenient for being able to quickly whip up diagrams to share for discussion. Like when you have a small group of folks that need to iterate on a DB design, it&#x27;s super simple to change things.<p>I&#x27;ve used this a bunch early in projects where the team needs to agree on DB structure:<p>1. whip something up as a discussion piece 2. usually a quick meeting to iterate on it, spot problems, correct. 3. you&#x27;re close enough to build the DB bits, ship it. :)
aslakhellesoy18 days ago
I’ve been using Mermerd [1] for years and never looked back. Simple, does one thing well.<p>It gets even better with elk layout - just prepend this frontmatter snippet to mermerd’s output:<p><pre><code> --- config: layout: elk --- </code></pre> [1]: <a href="https:&#x2F;&#x2F;github.com&#x2F;KarnerTh&#x2F;mermerd">https:&#x2F;&#x2F;github.com&#x2F;KarnerTh&#x2F;mermerd</a>
pablogancharov18 days ago
Just for fun you can explain the domain problem to an LLM, then ask it for the dbdiagram json representation. Fix any issue you may spot, then ask the LLM to convert it to Jhipster modeling language (JDL) and import it with the cli. For me that’s the type of workflow that involves AI, rather cursor&#x2F;windsurf&#x2F;claude approach.
zelphirkalt18 days ago
Is there a way to switch to numerical multiplicities&#x2F;cardinalities? I always find the circle and feet notation not very readable and also less precise in some cases.<p>My personal go-to tool for this kind of diagram may remain yEd graph editor for now.
rbanffy18 days ago
I would absolutely love a free tool that compiled SQL into UML suitable for diagrams and visual exploration.<p>BTW, one that did the same for Terraform would make my life so much easier…
评论 #43812773 未加载
notable_chuckle17 days ago
I am using Visual Studio Code with a dbml extension. I enjoyed learning dbml with dbdiagram.io.
_ZeD_18 days ago
What&#x27;s wrong with dbeaver?
评论 #43811499 未加载
评论 #43810138 未加载
vfclists18 days ago
can it export to other graph drawing languages like graphviz or mermaid?
评论 #43810901 未加载
gitroom18 days ago
insane the number of ways people handle diagrams - honestly i just get lost in all the tool options. you think having too many choices slows progress or actually helps in the long run?
Crowberry18 days ago
I can recommend drawsql
quentincaffeino18 days ago
have a look at plantuml
aerhardt18 days ago
I’ve used it in the past really like it.
alwinaugustin18 days ago
This has been there forever.
DidYaWipe18 days ago
Another Web-only tool. Bummer.