salix/modules/item/back/models/item-botanical.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"
}
}
}