2017-12-04 13:11:55 +03:00
|
|
|
{
|
|
|
|
"tables": [
|
|
|
|
{
|
2018-11-10 14:53:46 +03:00
|
|
|
"tableName": "publisher",
|
|
|
|
"tableDescription": "Издательство",
|
2017-12-04 13:11:55 +03:00
|
|
|
"fieldList": [
|
|
|
|
{
|
|
|
|
"fName": "id",
|
|
|
|
"fDescription": "Номер п.п.",
|
2018-11-10 14:53:46 +03:00
|
|
|
"fType": "INTEGER",
|
2017-12-04 13:11:55 +03:00
|
|
|
"index": "PRIMARY KEY",
|
|
|
|
"autoIncrement": "yes",
|
|
|
|
"relation": []
|
|
|
|
},
|
|
|
|
{
|
2018-11-10 14:53:46 +03:00
|
|
|
"fName": "publisher_name",
|
|
|
|
"fDescription": "Наименование",
|
2017-12-04 13:11:55 +03:00
|
|
|
"fType": "char(20)",
|
2018-11-10 14:53:46 +03:00
|
|
|
"index": "no",
|
2017-12-04 13:11:55 +03:00
|
|
|
"autoIncrement": "no",
|
|
|
|
"relation": []
|
2018-11-10 14:53:46 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"tableName": "authors",
|
|
|
|
"tableDescription": "Авторы",
|
|
|
|
"fieldList": [
|
2017-12-04 13:11:55 +03:00
|
|
|
{
|
2018-11-10 14:53:46 +03:00
|
|
|
"fName": "id",
|
|
|
|
"fDescription": "Номер п.п.",
|
|
|
|
"fType": "INTEGER",
|
|
|
|
"index": "PRIMARY KEY",
|
|
|
|
"autoIncrement": "yes",
|
2017-12-04 13:11:55 +03:00
|
|
|
"relation": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"fName": "last_name",
|
|
|
|
"fDescription": "Фамилия",
|
|
|
|
"fType": "char(20)",
|
|
|
|
"index": "no",
|
|
|
|
"autoIncrement": "no",
|
|
|
|
"relation": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"fName": "name",
|
|
|
|
"fDescription": "Имя",
|
|
|
|
"fType": "char(20)",
|
|
|
|
"index": "no",
|
|
|
|
"autoIncrement": "no",
|
|
|
|
"relation": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"fName": "middle_name",
|
|
|
|
"fDescription": "Отчество",
|
|
|
|
"fType": "char(20)",
|
|
|
|
"index": "no",
|
|
|
|
"autoIncrement": "no",
|
|
|
|
"relation": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2018-11-10 14:53:46 +03:00
|
|
|
"tableName": "books",
|
|
|
|
"tableDescription": "Книги",
|
2017-12-04 13:11:55 +03:00
|
|
|
"fieldList": [
|
|
|
|
{
|
|
|
|
"fName": "id",
|
|
|
|
"fDescription": "Номер п.п.",
|
|
|
|
"fType": "INTEGER",
|
|
|
|
"index": "PRIMARY KEY",
|
|
|
|
"autoIncrement": "yes",
|
|
|
|
"relation": []
|
|
|
|
},
|
|
|
|
{
|
2018-11-10 14:53:46 +03:00
|
|
|
"fName": "book_name",
|
|
|
|
"fDescription": "Название",
|
2017-12-04 13:11:55 +03:00
|
|
|
"fType": "varchar(100)",
|
|
|
|
"index": "yes",
|
|
|
|
"autoIncrement": "no",
|
|
|
|
"relation": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"fName": "description",
|
|
|
|
"fDescription": "Описание",
|
|
|
|
"fType": "varchar(200)",
|
|
|
|
"index": "no",
|
|
|
|
"autoIncrement": "no",
|
|
|
|
"relation": []
|
|
|
|
},
|
|
|
|
{
|
2018-11-10 14:53:46 +03:00
|
|
|
"fName": "authors_id",
|
|
|
|
"fDescription": "Автор",
|
2017-12-04 13:11:55 +03:00
|
|
|
"fType": "INTEGER",
|
|
|
|
"index": "no",
|
|
|
|
"autoIncrement": "no",
|
2018-11-10 14:53:46 +03:00
|
|
|
"relation": ["authors.id", "last_name, name, middle_name"]
|
2017-12-04 13:11:55 +03:00
|
|
|
},
|
|
|
|
{
|
2018-11-10 14:53:46 +03:00
|
|
|
"fName": "publisher_id",
|
|
|
|
"fDescription": "Издательство",
|
2017-12-04 13:11:55 +03:00
|
|
|
"fType": "INTEGER",
|
|
|
|
"index": "no",
|
|
|
|
"autoIncrement": "no",
|
2018-11-10 14:53:46 +03:00
|
|
|
"relation": ["publisher.id", "publisher_name"]
|
2017-12-04 13:11:55 +03:00
|
|
|
},
|
|
|
|
{
|
2018-11-10 14:53:46 +03:00
|
|
|
"fName": "category_id",
|
|
|
|
"fDescription": "Жанр",
|
2017-12-04 13:11:55 +03:00
|
|
|
"fType": "INTEGER",
|
|
|
|
"index": "no",
|
|
|
|
"autoIncrement": "no",
|
2018-11-10 14:53:46 +03:00
|
|
|
"relation": ["category.id", "category_name"]
|
2017-12-04 13:11:55 +03:00
|
|
|
}
|
2018-11-10 14:53:46 +03:00
|
|
|
|
2017-12-04 13:11:55 +03:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2018-11-10 14:53:46 +03:00
|
|
|
"tableName": "category",
|
|
|
|
"tableDescription": "Жанр",
|
2017-12-04 13:11:55 +03:00
|
|
|
"fieldList": [
|
|
|
|
{
|
|
|
|
"fName": "id",
|
|
|
|
"fDescription": "Номер п.п.",
|
|
|
|
"fType": "INTEGER",
|
|
|
|
"index": "PRIMARY KEY",
|
|
|
|
"autoIncrement": "yes",
|
|
|
|
"relation": []
|
|
|
|
},
|
|
|
|
{
|
2018-11-10 14:53:46 +03:00
|
|
|
"fName": "category_name",
|
|
|
|
"fDescription": "Название жанра",
|
|
|
|
"fType": "varchar(100)",
|
|
|
|
"index": "yes",
|
2017-12-04 13:11:55 +03:00
|
|
|
"autoIncrement": "no",
|
|
|
|
"relation": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|