2022-04-10 07:47:15 +03:00
|
|
|
[
|
|
|
|
{
|
2022-08-04 11:34:45 +03:00
|
|
|
"name": ["Artist"],
|
2022-07-01 15:20:07 +03:00
|
|
|
"primary_key": ["ArtistId"],
|
2022-04-10 07:47:15 +03:00
|
|
|
"description": "Collection of artists of music",
|
|
|
|
"columns": [
|
|
|
|
{
|
2022-06-13 23:58:44 +03:00
|
|
|
"name": "ArtistId",
|
2022-04-10 07:47:15 +03:00
|
|
|
"type": "number",
|
|
|
|
"nullable": false,
|
|
|
|
"description": "Artist primary key identifier"
|
|
|
|
},
|
|
|
|
{
|
2022-06-13 23:58:44 +03:00
|
|
|
"name": "Name",
|
2022-04-10 07:47:15 +03:00
|
|
|
"type": "string",
|
2022-06-13 23:58:44 +03:00
|
|
|
"nullable": true,
|
2022-04-10 07:47:15 +03:00
|
|
|
"description": "The name of the artist"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2022-08-04 11:34:45 +03:00
|
|
|
"name": ["Album"],
|
2022-07-01 15:20:07 +03:00
|
|
|
"primary_key": ["AlbumId"],
|
2022-04-10 07:47:15 +03:00
|
|
|
"description": "Collection of music albums created by artists",
|
|
|
|
"columns": [
|
|
|
|
{
|
2022-06-13 23:58:44 +03:00
|
|
|
"name": "AlbumId",
|
2022-04-10 07:47:15 +03:00
|
|
|
"type": "number",
|
|
|
|
"nullable": false,
|
|
|
|
"description": "Album primary key identifier"
|
|
|
|
},
|
|
|
|
{
|
2022-06-13 23:58:44 +03:00
|
|
|
"name": "Title",
|
2022-04-10 07:47:15 +03:00
|
|
|
"type": "string",
|
|
|
|
"nullable": false,
|
|
|
|
"description": "The title of the album"
|
|
|
|
},
|
|
|
|
{
|
2022-06-13 23:58:44 +03:00
|
|
|
"name": "ArtistId",
|
2022-04-10 07:47:15 +03:00
|
|
|
"type": "number",
|
|
|
|
"nullable": false,
|
|
|
|
"description": "The ID of the artist that created this album"
|
|
|
|
}
|
|
|
|
]
|
2022-06-13 23:58:44 +03:00
|
|
|
},
|
|
|
|
{
|
2022-08-04 11:34:45 +03:00
|
|
|
"name": ["Customer"],
|
2022-07-01 15:20:07 +03:00
|
|
|
"primary_key": ["CustomerId"],
|
2022-06-13 23:58:44 +03:00
|
|
|
"description": "Collection of customers who can buy tracks",
|
|
|
|
"columns": [
|
|
|
|
{
|
|
|
|
"name": "CustomerId",
|
|
|
|
"type": "number",
|
|
|
|
"nullable": false,
|
|
|
|
"description": "Customer primary key identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "FirstName",
|
|
|
|
"type": "string",
|
|
|
|
"nullable": false,
|
|
|
|
"description": "The customer's first name"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "LastName",
|
|
|
|
"type": "string",
|
|
|
|
"nullable": false,
|
|
|
|
"description": "The customer's last name"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Company",
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true,
|
|
|
|
"description": "The customer's company name"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Address",
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true,
|
|
|
|
"description": "The customer's address line (street number, street)"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "City",
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true,
|
|
|
|
"description": "The customer's address city"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "State",
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true,
|
|
|
|
"description": "The customer's address state"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Country",
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true,
|
|
|
|
"description": "The customer's address country"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "PostalCode",
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true,
|
|
|
|
"description": "The customer's address postal code"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Phone",
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true,
|
|
|
|
"description": "The customer's phone number"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Fax",
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true,
|
|
|
|
"description": "The customer's fax number"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Email",
|
|
|
|
"type": "string",
|
|
|
|
"nullable": false,
|
|
|
|
"description": "The customer's email address"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "SupportRepId",
|
|
|
|
"type": "number",
|
|
|
|
"nullable": true,
|
|
|
|
"description": "The ID of the Employee who is this customer's support representative"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2022-08-04 11:34:45 +03:00
|
|
|
"name": ["Employee"],
|
2022-07-01 15:20:07 +03:00
|
|
|
"primary_key": ["EmployeeId"],
|
2022-06-13 23:58:44 +03:00
|
|
|
"description": "Collection of employees who work for the business",
|
|
|
|
"columns": [
|
|
|
|
{
|
|
|
|
"name": "EmployeeId",
|
|
|
|
"type": "number",
|
|
|
|
"nullable": false,
|
|
|
|
"description": "Employee primary key identifier"
|
|
|
|
},
|
|
|
|
{
|
2022-07-19 03:37:04 +03:00
|
|
|
"name": "LastName",
|
2022-06-13 23:58:44 +03:00
|
|
|
"type": "string",
|
|
|
|
"nullable": false,
|
2022-07-19 03:37:04 +03:00
|
|
|
"description": "The employee's last name"
|
2022-06-13 23:58:44 +03:00
|
|
|
},
|
|
|
|
{
|
2022-07-19 03:37:04 +03:00
|
|
|
"name": "FirstName",
|
2022-06-13 23:58:44 +03:00
|
|
|
"type": "string",
|
|
|
|
"nullable": false,
|
2022-07-19 03:37:04 +03:00
|
|
|
"description": "The employee's first name"
|
2022-06-13 23:58:44 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Title",
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true,
|
|
|
|
"description": "The employee's job title"
|
|
|
|
},
|
2022-07-19 03:37:04 +03:00
|
|
|
{
|
|
|
|
"name": "ReportsTo",
|
|
|
|
"type": "number",
|
|
|
|
"nullable": true,
|
|
|
|
"description": "The employee's report"
|
|
|
|
},
|
2022-06-13 23:58:44 +03:00
|
|
|
{
|
|
|
|
"name": "BirthDate",
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true,
|
|
|
|
"description": "The employee's birth date"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "HireDate",
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true,
|
2022-07-28 08:39:48 +03:00
|
|
|
"description": "The employee's hire date"
|
2022-06-13 23:58:44 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Address",
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true,
|
|
|
|
"description": "The employee's address line (street number, street)"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "City",
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true,
|
|
|
|
"description": "The employee's address city"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "State",
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true,
|
|
|
|
"description": "The employee's address state"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Country",
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true,
|
|
|
|
"description": "The employee's address country"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "PostalCode",
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true,
|
|
|
|
"description": "The employee's address postal code"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Phone",
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true,
|
|
|
|
"description": "The employee's phone number"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Fax",
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true,
|
|
|
|
"description": "The employee's fax number"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Email",
|
|
|
|
"type": "string",
|
2022-07-19 03:37:04 +03:00
|
|
|
"nullable": true,
|
2022-06-13 23:58:44 +03:00
|
|
|
"description": "The employee's email address"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2022-08-04 11:34:45 +03:00
|
|
|
"name": ["Genre"],
|
2022-07-01 15:20:07 +03:00
|
|
|
"primary_key": ["GenreId"],
|
2022-06-13 23:58:44 +03:00
|
|
|
"description": "Genres of music",
|
|
|
|
"columns": [
|
|
|
|
{
|
|
|
|
"name": "GenreId",
|
|
|
|
"type": "number",
|
|
|
|
"nullable": false,
|
|
|
|
"description": "Genre primary key identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Name",
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true,
|
|
|
|
"description": "The name of the genre"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2022-08-04 11:34:45 +03:00
|
|
|
"name": ["Invoice"],
|
2022-07-01 15:20:07 +03:00
|
|
|
"primary_key": ["InvoiceId"],
|
2022-06-13 23:58:44 +03:00
|
|
|
"description": "Collection of invoices of music purchases by a customer",
|
|
|
|
"columns": [
|
|
|
|
{
|
|
|
|
"name": "InvoiceId",
|
|
|
|
"type": "number",
|
|
|
|
"nullable": false,
|
|
|
|
"description": "Invoice primary key identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "CustomerId",
|
|
|
|
"type": "number",
|
|
|
|
"nullable": false,
|
|
|
|
"description": "ID of the customer who bought the music"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "InvoiceDate",
|
|
|
|
"type": "string",
|
|
|
|
"nullable": false,
|
|
|
|
"description": "Date of the invoice"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "BillingAddress",
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true,
|
|
|
|
"description": "The invoice's billing address line (street number, street)"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "BillingCity",
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true,
|
|
|
|
"description": "The invoice's billing address city"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "BillingState",
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true,
|
|
|
|
"description": "The invoice's billing address state"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "BillingCountry",
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true,
|
|
|
|
"description": "The invoice's billing address country"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "BillingPostalCode",
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true,
|
|
|
|
"description": "The invoice's billing address postal code"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Total",
|
|
|
|
"type": "number",
|
|
|
|
"nullable": false,
|
|
|
|
"description": "The total amount due on the invoice"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2022-08-04 11:34:45 +03:00
|
|
|
"name": ["InvoiceLine"],
|
2022-07-01 15:20:07 +03:00
|
|
|
"primary_key": ["InvoiceLineId"],
|
2022-06-13 23:58:44 +03:00
|
|
|
"description": "Collection of track purchasing line items of invoices",
|
|
|
|
"columns": [
|
|
|
|
{
|
|
|
|
"name": "InvoiceLineId",
|
|
|
|
"type": "number",
|
|
|
|
"nullable": false,
|
|
|
|
"description": "Invoice Line primary key identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "InvoiceId",
|
|
|
|
"type": "number",
|
|
|
|
"nullable": false,
|
|
|
|
"description": "ID of the invoice the line belongs to"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "TrackId",
|
|
|
|
"type": "number",
|
|
|
|
"nullable": false,
|
|
|
|
"description": "ID of the music track being purchased"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "UnitPrice",
|
|
|
|
"type": "number",
|
|
|
|
"nullable": false,
|
|
|
|
"description": "Price of each individual track unit"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Quantity",
|
|
|
|
"type": "number",
|
|
|
|
"nullable": false,
|
|
|
|
"description": "Quantity of the track purchased"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2022-08-04 11:34:45 +03:00
|
|
|
"name": ["MediaType"],
|
2022-07-01 15:20:07 +03:00
|
|
|
"primary_key": ["MediaTypeId"],
|
2022-06-13 23:58:44 +03:00
|
|
|
"description": "Collection of media types that tracks can be encoded in",
|
|
|
|
"columns": [
|
|
|
|
{
|
|
|
|
"name": "MediaTypeId",
|
|
|
|
"type": "number",
|
|
|
|
"nullable": false,
|
|
|
|
"description": "Media Type primary key identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Name",
|
2022-07-19 03:37:04 +03:00
|
|
|
"type": "string",
|
2022-06-13 23:58:44 +03:00
|
|
|
"nullable": true,
|
|
|
|
"description": "The name of the media type format"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2022-08-04 11:34:45 +03:00
|
|
|
"name": ["Playlist"],
|
2022-07-01 15:20:07 +03:00
|
|
|
"primary_key": ["PlaylistId"],
|
2022-06-13 23:58:44 +03:00
|
|
|
"description": "Collection of playlists",
|
|
|
|
"columns": [
|
|
|
|
{
|
|
|
|
"name": "PlaylistId",
|
|
|
|
"type": "number",
|
|
|
|
"nullable": false,
|
|
|
|
"description": "Playlist primary key identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Name",
|
2022-07-19 03:37:04 +03:00
|
|
|
"type": "string",
|
2022-06-13 23:58:44 +03:00
|
|
|
"nullable": true,
|
|
|
|
"description": "The name of the playlist"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2022-07-01 15:20:07 +03:00
|
|
|
{
|
2022-08-04 11:34:45 +03:00
|
|
|
"name": ["PlaylistTrack"],
|
2022-07-01 15:20:07 +03:00
|
|
|
"primary_key": ["PlaylistId", "TrackId"],
|
|
|
|
"description": "Associations between playlists and tracks",
|
|
|
|
"columns": [
|
|
|
|
{
|
|
|
|
"name": "PlaylistId",
|
|
|
|
"type": "number",
|
|
|
|
"nullable": false,
|
|
|
|
"description": "The ID of the playlist"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "TrackId",
|
|
|
|
"type": "number",
|
2022-07-19 03:37:04 +03:00
|
|
|
"nullable": false,
|
2022-07-01 15:20:07 +03:00
|
|
|
"description": "The ID of the track"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2022-06-13 23:58:44 +03:00
|
|
|
{
|
2022-08-04 11:34:45 +03:00
|
|
|
"name": ["Track"],
|
2022-07-01 15:20:07 +03:00
|
|
|
"primary_key": ["TrackId"],
|
2022-06-13 23:58:44 +03:00
|
|
|
"description": "Collection of music tracks",
|
|
|
|
"columns": [
|
|
|
|
{
|
|
|
|
"name": "TrackId",
|
|
|
|
"type": "number",
|
|
|
|
"nullable": false,
|
2022-06-30 11:36:54 +03:00
|
|
|
"description": "The ID of the track"
|
2022-06-13 23:58:44 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Name",
|
|
|
|
"type": "string",
|
|
|
|
"nullable": false,
|
|
|
|
"description": "The name of the track"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "AlbumId",
|
|
|
|
"type": "number",
|
|
|
|
"nullable": true,
|
|
|
|
"description": "The ID of the album the track belongs to"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "MediaTypeId",
|
|
|
|
"type": "number",
|
2022-07-19 03:37:04 +03:00
|
|
|
"nullable": false,
|
2022-06-13 23:58:44 +03:00
|
|
|
"description": "The ID of the media type the track is encoded with"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "GenreId",
|
|
|
|
"type": "number",
|
|
|
|
"nullable": true,
|
|
|
|
"description": "The ID of the genre of the track"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Composer",
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true,
|
|
|
|
"description": "The name of the composer of the track"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Milliseconds",
|
|
|
|
"type": "number",
|
|
|
|
"nullable": false,
|
|
|
|
"description": "The length of the track in milliseconds"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Bytes",
|
|
|
|
"type": "number",
|
|
|
|
"nullable": true,
|
|
|
|
"description": "The size of the track in bytes"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "UnitPrice",
|
|
|
|
"type": "number",
|
|
|
|
"nullable": false,
|
|
|
|
"description": "The price of the track"
|
|
|
|
}
|
|
|
|
]
|
2022-04-10 07:47:15 +03:00
|
|
|
}
|
|
|
|
]
|