data-manipulation/db_template/library.json

142 lines
3.5 KiB
JSON
Raw Normal View History

{
"tables": [
{
2018-11-10 14:53:46 +03:00
"tableName": "publisher",
"tableDescription": "Издательство",
"fieldList": [
{
"fName": "id",
"fDescription": "Номер п.п.",
2018-11-10 14:53:46 +03:00
"fType": "INTEGER",
"index": "PRIMARY KEY",
"autoIncrement": "yes",
"relation": []
},
{
2018-11-10 14:53:46 +03:00
"fName": "publisher_name",
"fDescription": "Наименование",
"fType": "char(20)",
2018-11-10 14:53:46 +03:00
"index": "no",
"autoIncrement": "no",
"relation": []
2018-11-10 14:53:46 +03:00
}
]
},
{
"tableName": "authors",
"tableDescription": "Авторы",
"fieldList": [
{
2018-11-10 14:53:46 +03:00
"fName": "id",
"fDescription": "Номер п.п.",
"fType": "INTEGER",
"index": "PRIMARY KEY",
"autoIncrement": "yes",
"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": "Книги",
"fieldList": [
{
"fName": "id",
"fDescription": "Номер п.п.",
"fType": "INTEGER",
"index": "PRIMARY KEY",
"autoIncrement": "yes",
"relation": []
},
{
2018-11-10 14:53:46 +03:00
"fName": "book_name",
"fDescription": "Название",
"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": "Автор",
"fType": "INTEGER",
"index": "no",
"autoIncrement": "no",
2018-11-10 14:53:46 +03:00
"relation": ["authors.id", "last_name, name, middle_name"]
},
{
2018-11-10 14:53:46 +03:00
"fName": "publisher_id",
"fDescription": "Издательство",
"fType": "INTEGER",
"index": "no",
"autoIncrement": "no",
2018-11-10 14:53:46 +03:00
"relation": ["publisher.id", "publisher_name"]
},
{
2018-11-10 14:53:46 +03:00
"fName": "category_id",
"fDescription": "Жанр",
"fType": "INTEGER",
"index": "no",
"autoIncrement": "no",
2018-11-10 14:53:46 +03:00
"relation": ["category.id", "category_name"]
}
2018-11-10 14:53:46 +03:00
]
},
{
2018-11-10 14:53:46 +03:00
"tableName": "category",
"tableDescription": "Жанр",
"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",
"autoIncrement": "no",
"relation": []
}
]
}
]
}