Chinook database ER diagram
The digital media store sample — artists, albums, tracks, playlists and invoices — rendered straight from the official schema file.
What you're looking at
Chinook models an iTunes-style digital music store: artists release albums, albums carry tracks, customers buy them through invoices, and playlists mix tracks across albums. It packs the classic shapes into just 11 tables — two many-to-many junctions (PlaylistTrack and InvoiceLine), a self-referencing Employee table for the support-rep hierarchy, and the bracket-quoted SQLite dialect this page renders in.
Nothing above is hand-drawn — the diagram is generated from the official schema file, the same SQL you would paste into the SQL to ER diagram converter.
Working in SQLite? The SQLite to ER diagram converter takes any SQLite DDL — schema dump files, hand-written DDL, or a single CREATE TABLE.
Where the schema comes from
- Source: lerocha/chinook-database
- License: MIT
- The schema belongs to its original authors; the diagram above was generated by erd.yizuolab.com.
Questions, answered
What is the Chinook database?
Chinook is an open-sample database that simulates a digital music store — a well-known replacement for the old Northwind sample, used across SQLite, PostgreSQL and SQL Server tutorials. It ships in several dialects; this page renders the SQLite one.
Is this the full Chinook schema?
Yes — all 11 tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack and Track. The sample data (thousands of INSERT rows) is not shown; the diagram is about structure.
Can I paste my own SQL instead?
Yes — this page is a live converter with a locked dialect. Switch to the full SQL to ER diagram converter to paste your own DDL, auto-detect the dialect, and export SVG, PNG or a Mermaid text block.
What license is the Chinook schema under?
MIT. The schema belongs to its original authors (github.com/lerocha/chinook-database); the diagram above was simply generated from their file.
Other real schemas
- Northwind ER diagram — SQL Server, 13 tables
- Pagila ER diagram — PostgreSQL, 16 tables
- AdventureWorks ER diagram — SQL Server, 46 tables
- All examples · SQL to Mermaid