37 lines
777 B
JSON
37 lines
777 B
JSON
{
|
|
"name": "ItemBotanical",
|
|
"base": "Loggable",
|
|
"log": {
|
|
"model": "ItemLog",
|
|
"relation": "item"
|
|
},
|
|
"options": {
|
|
"mysql": {
|
|
"table": "itemBotanical"
|
|
}
|
|
},
|
|
"properties": {
|
|
"itemFk": {
|
|
"type": "Number",
|
|
"id": true,
|
|
"description": "Identifier"
|
|
}
|
|
},
|
|
"relations": {
|
|
"item": {
|
|
"type": "belongsTo",
|
|
"model": "Item",
|
|
"foreignKey": "itemFk"
|
|
},
|
|
"genus": {
|
|
"type": "belongsTo",
|
|
"model": "Genus",
|
|
"foreignKey": "genusFk"
|
|
},
|
|
"specie": {
|
|
"type": "belongsTo",
|
|
"model": "Specie",
|
|
"foreignKey": "specieFk"
|
|
}
|
|
}
|
|
} |