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

33 lines
533 B
JSON
Raw Normal View History

{
"name": "ItemBarcode",
2019-03-12 10:47:53 +00:00
"base": "Loggable",
"log": {
"model": "ItemLog",
"relation": "item",
"changedModelValue": "code"
},
"options": {
"mysql": {
2018-12-17 10:28:39 +00:00
"table": "itemBarcode"
}
},
"properties": {
"id": {
"type": "Number",
"id": true,
"description": "Identifier"
},
"code": {
"type": "String",
"required": true
}
},
"relations": {
"item": {
"type": "belongsTo",
"model": "Item",
"foreignKey": "itemFk"
}
}
}