73 lines
1.7 KiB
JSON
73 lines
1.7 KiB
JSON
{
|
|
"tables": [
|
|
{
|
|
"tableName": "type",
|
|
"tableDescription": "Тип элемента",
|
|
"fieldList": [
|
|
{
|
|
"fName": "id",
|
|
"fDescription": "Номер п.п.",
|
|
"fType": "INT(6)",
|
|
"index": "PRIMARY KEY",
|
|
"autoIncrement": "yes",
|
|
"relation": []
|
|
},
|
|
{
|
|
"fName": "name",
|
|
"fDescription": "Тип элемента",
|
|
"fType": "char(20)",
|
|
"index": "yes",
|
|
"autoIncrement": "no",
|
|
"relation": []
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"tableName": "items",
|
|
"tableDescription": "Элементы",
|
|
"fieldList": [
|
|
{
|
|
"fName": "id",
|
|
"fDescription": "Номер п.п.",
|
|
"fType": "INTEGER",
|
|
"index": "PRIMARY KEY",
|
|
"autoIncrement": "yes",
|
|
"relation": []
|
|
},
|
|
{
|
|
"fName": "item_name",
|
|
"fDescription": "Наименование",
|
|
"fType": "varchar(100)",
|
|
"index": "yes",
|
|
"autoIncrement": "no",
|
|
"relation": []
|
|
},
|
|
{
|
|
"fName": "description",
|
|
"fDescription": "Описание",
|
|
"fType": "varchar(200)",
|
|
"index": "no",
|
|
"autoIncrement": "no",
|
|
"relation": []
|
|
},
|
|
{
|
|
"fName": "type_id",
|
|
"fDescription": "Тип",
|
|
"fType": "INTEGER",
|
|
"index": "no",
|
|
"autoIncrement": "no",
|
|
"relation": ["type.id", "name"]
|
|
},
|
|
{
|
|
"fName": "count",
|
|
"fDescription": "Количество",
|
|
"fType": "INTEGER",
|
|
"index": "no",
|
|
"autoIncrement": "no",
|
|
"relation": []
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|