dbdiagram.io

Free + paid optionsDatabases & SQLdbdiagram.io

Best for: Sketching a schema quickly

Overview

Draw database schemas by writing a simple text format (DBML); it renders the diagram and can export SQL.

Strengths

  • Fast to write
  • Exports SQL

Drawbacks

  • Some features need a paid plan

Alternatives to dbdiagram.io

See all 11 →

Entity Framework Core

The default data layer for most .NET apps
Free

Microsoft's ORM for .NET. Map C# classes to tables, query with LINQ, and manage schema changes with migrations. Works with SQL Server, PostgreSQL (via Npgsql), SQLite and others.

Dapper

Hand-written SQL without boilerplate
Free

Lightweight object mapper: you write the SQL, Dapper maps the rows to C# objects. Very little overhead, which is why it's often used next to EF Core for performance-critical queries.

PostgreSQL documentation

Checking how Postgres really behaves
Free

The official PostgreSQL manual. Unusually readable; the chapters on indexes, MVCC and EXPLAIN are worth reading in full.