table
Album
Albums released by an artist.
AlbumIdINTEGER · PKTitleNVARCHAR(160)ArtistIdINTEGERReferences Artist.ArtistId
OpenVaultDB database
The Chinook sample database: a digital music store with artists, albums, tracks, playlists, customers, employees and invoices. Read-only, served from a pinned copy of the upstream SQLite fixture.
Published collections
11 declared foreign-key relationships. Names and keys preserve the source database schema. The database site includes the complete native schema, including views.
Published recordsets
table
Albums released by an artist.
AlbumIdINTEGER · PKTitleNVARCHAR(160)ArtistIdINTEGERReferences Artist.ArtistId
table
Artists represented in the music catalogue.
ArtistIdINTEGER · PKNameNVARCHAR(120) · nullabletable
Customers who purchase music from the store.
CustomerIdINTEGER · PKFirstNameNVARCHAR(40)LastNameNVARCHAR(20)CompanyNVARCHAR(80) · nullableAddressNVARCHAR(70) · nullableCityNVARCHAR(40) · nullableStateNVARCHAR(40) · nullableCountryNVARCHAR(40) · nullablePostalCodeNVARCHAR(10) · nullablePhoneNVARCHAR(24) · nullableFaxNVARCHAR(24) · nullableEmailNVARCHAR(60)SupportRepIdINTEGER · nullableReferences Employee.EmployeeId
table
Store employees and their reporting relationships.
EmployeeIdINTEGER · PKLastNameNVARCHAR(20)FirstNameNVARCHAR(20)TitleNVARCHAR(30) · nullableReportsToINTEGER · nullableBirthDateDATETIME · nullableHireDateDATETIME · nullableAddressNVARCHAR(70) · nullableCityNVARCHAR(40) · nullableStateNVARCHAR(40) · nullableCountryNVARCHAR(40) · nullablePostalCodeNVARCHAR(10) · nullablePhoneNVARCHAR(24) · nullableFaxNVARCHAR(24) · nullableEmailNVARCHAR(60) · nullableReferences Employee.EmployeeId
table
Music genres assigned to tracks.
GenreIdINTEGER · PKNameNVARCHAR(120) · nullabletable
Billing invoices issued to customers for music purchases.
InvoiceIdINTEGER · PKCustomerIdINTEGERInvoiceDateDATETIMEBillingAddressNVARCHAR(70) · nullableBillingCityNVARCHAR(40) · nullableBillingStateNVARCHAR(40) · nullableBillingCountryNVARCHAR(40) · nullableBillingPostalCodeNVARCHAR(10) · nullableTotalNUMERIC(10,2)References Customer.CustomerId
table
Individual tracks and quantities on an invoice.
InvoiceLineIdINTEGER · PKInvoiceIdINTEGERTrackIdINTEGERUnitPriceNUMERIC(10,2)QuantityINTEGERReferences Track.TrackId, Invoice.InvoiceId
table
File and encoding types used by tracks.
MediaTypeIdINTEGER · PKNameNVARCHAR(120) · nullabletable
Named collections of tracks.
PlaylistIdINTEGER · PKNameNVARCHAR(120) · nullabletable
The many-to-many link between playlists and tracks.
PlaylistIdINTEGER · PKTrackIdINTEGER · PKReferences Track.TrackId, Playlist.PlaylistId
table
Individual audio tracks available in the store.
TrackIdINTEGER · PKNameNVARCHAR(200)AlbumIdINTEGER · nullableMediaTypeIdINTEGERGenreIdINTEGER · nullableComposerNVARCHAR(220) · nullableMillisecondsINTEGERBytesINTEGER · nullableUnitPriceNUMERIC(10,2)References MediaType.MediaTypeId, Genre.GenreId, Album.AlbumId
Provenance
Source: https://github.com/lerocha/chinook-database at 7f67772503d71ba90f19283c38e93923addb43fa.
Source licence: MIT. Model licence: MIT. Meaning licence: CC0-1.0.
Published by DemoDB; provider repository ↗.
The checked-in SQLite fixture is byte-for-byte the upstream SQLite file from the pinned revision.
Semantic references