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

41 lines
872 B
JSON
Raw Normal View History

{
"name": "ItemBotanical",
2019-03-12 10:47:53 +00:00
"base": "Loggable",
"log": {
"model": "ItemLog",
"relation": "item",
"showField": "botanical"
2019-03-12 10:47:53 +00:00
},
"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"
}
}
}