salix/modules/item/back/models/item-botanical.json

37 lines
754 B
JSON
Raw Normal View History

{
"name": "ItemBotanical",
"base": "VnModel",
"mixins": {
"Loggable": true
},
"options": {
"mysql": {
"table": "itemBotanical"
}
},
"properties": {
"itemFk": {
2022-05-12 07:47:47 +00:00
"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"
}
}
}