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