Found a simple tool for database modeling: dbdiagram.io
1–10 of 76 posts
Re: Found a simple tool for database modeling: dbdiagram.io
#2He then generated SQL from the diagram and deployed the schema to PostgreSQL. The schema was shared and reviewed.
The tool is https://dbdiagram.io
You can import/export SQL and generate images of your schema.
Re: Found a simple tool for database modeling: dbdiagram.io
#3While discussing data models, my colleague was sketching tables and their relationships in an editor: table A, table B, columns linking them. He then generated SQL from the diagram and deployed the schema to PostgreSQL. The schema was shared and reviewed. The tool is https://dbdiagram.io You can import/export SQL and generate images of your schema.
Re: Found a simple tool for database modeling: dbdiagram.io
#4Re: Found a simple tool for database modeling: dbdiagram.io
#5It can also save the picture as a mermaid text for future edits. Pretty neat.
Re: Found a simple tool for database modeling: dbdiagram.io
#6I 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. It can also save the picture as a mermaid text for future edits. Pretty neat.
Re: Found a simple tool for database modeling: dbdiagram.io
#7Re: Found a simple tool for database modeling: dbdiagram.io
#8I 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. It can also save the picture as a mermaid text for future edits. Pretty neat.
And by SQL do you mean DDL?
Re: Found a simple tool for database modeling: dbdiagram.io
#9I 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. It can also save the picture as a mermaid text for future edits. Pretty neat.
"A picture of a schema"? What does this mean? And by SQL do you mean DDL?
A hand-drawn picture of a database schema. Something like this:
https://www.dreamstime.com/stock-images-database-schema-imag...
> And by SQL do you mean DDL?
DDL is a subset of SQL, so the distinction is moot.
Re: Found a simple tool for database modeling: dbdiagram.io
#10The FLOSS tool https://drawdb.vercel.app/editor has been here on HN several times. IMHO also does a somewhat better job.
Usually I wouldn't care too much about a tool like this running on mobile, but not at a PC right now, so that's all I can give feedback about.