36 lines
768 B
JSON
36 lines
768 B
JSON
{
|
|
"name": "ItemBotanical",
|
|
"base": "VnModel",
|
|
"options": {
|
|
"mysql": {
|
|
"table": "itemBotanical"
|
|
}
|
|
},
|
|
"properties": {
|
|
"itemFk": {
|
|
"type": "Number",
|
|
"id": true,
|
|
"description": "Identifier"
|
|
},
|
|
"botanical": {
|
|
"type": "String"
|
|
}
|
|
},
|
|
"relations": {
|
|
"item": {
|
|
"type": "belongsTo",
|
|
"model": "Item",
|
|
"foreignKey": "itemFk"
|
|
},
|
|
"genus": {
|
|
"type": "belongsTo",
|
|
"model": "Genus",
|
|
"foreignKey": "genusFk"
|
|
},
|
|
"specie": {
|
|
"type": "belongsTo",
|
|
"model": "Specie",
|
|
"foreignKey": "specieFk"
|
|
}
|
|
}
|
|
} |