Data model
Chinook music store
Logical record types and their declared fields.
draftModule version 0.1.0
Registered DataModel
Provenance
draftModule version 0.1.0MIT
- Module
github.com/demo-db/chinook/model/chinook- Version
0.1.0- Repository
- https://github.com/demo-db/chinook
- Source commit
3e7bb316d8a438eb7e5930067997a4e4543a275c- MeaningGraph revision
770b32928920e4c4b0f389ecc6473eb18222be0bf61fecf90407bf24b98c2427- ModelSpec source
model/chinook.modelspec.hcl- ModelSpec AST
model/chinook.modelspec.json- Archived definition
- Download the exact registered definition
- Archived source files
data-source/LICENSE.mdLICENSELICENSE-CC0model/chinook.modelspec.hclmodel/chinook.modelspec.json
Logical structure
Record types
Record type
Artist
Key: ArtistId
ArtistIdintRequiredKey fieldNamestringmax_len120
Record type
Album
Key: AlbumId
AlbumIdintRequiredKey fieldTitlestringRequiredmax_len160
ArtistIdrecord referenceRecord:ArtistRequired
Record type
Track
Key: TrackId
Record type
Genre
Key: GenreId
GenreIdintRequiredKey fieldNamestringmax_len120
Record type
MediaType
Key: MediaTypeId
MediaTypeIdintRequiredKey fieldNamestringmax_len120
Record type
Playlist
Key: PlaylistId
PlaylistIdintRequiredKey fieldNamestringmax_len120
Record type
PlaylistTrack
Key: PlaylistIdTrackId
Record type
Customer
Key: CustomerId
CustomerIdintRequiredKey fieldFirstNamestringRequiredmax_len40
LastNamestringRequiredmax_len20
Companystringmax_len80
Addressstringmax_len70
Citystringmax_len40
Statestringmax_len40
Countrystringmax_len40
PostalCodestringmax_len10
Phonestringmax_len24
Faxstringmax_len24
EmailstringRequiredmax_len60formatemail
SupportRepIdrecord referenceRecord:Employee
Record type
Employee
Key: EmployeeId
EmployeeIdintRequiredKey fieldLastNamestringRequiredmax_len20
FirstNamestringRequiredmax_len20
Titlestringmax_len30
ReportsTorecord referenceRecord:EmployeeBirthDatedatetimeHireDatedatetimeAddressstringmax_len70
Citystringmax_len40
Statestringmax_len40
Countrystringmax_len40
PostalCodestringmax_len10
Phonestringmax_len24
Faxstringmax_len24
Emailstringmax_len60formatemail
Record type
Invoice
Key: InvoiceId
InvoiceIdintRequiredKey fieldCustomerIdrecord referenceRecord:CustomerRequiredInvoiceDatedatetimeRequiredBillingAddressstringmax_len70
BillingCitystringmax_len40
BillingStatestringmax_len40
BillingCountrystringmax_len40
BillingPostalCodestringmax_len10
TotaldecimalRequired
Record type
InvoiceLine
Key: InvoiceLineId