2018-02-14 13:22:35 +00:00
|
|
|
{
|
2018-02-19 10:55:45 +00:00
|
|
|
"name": "ItemBarcode",
|
2019-03-12 10:47:53 +00:00
|
|
|
"base": "Loggable",
|
|
|
|
"log": {
|
|
|
|
"model": "ItemLog",
|
|
|
|
"relation": "item",
|
2019-03-29 06:36:26 +00:00
|
|
|
"showField": "code"
|
2019-03-12 10:47:53 +00:00
|
|
|
},
|
2018-02-19 10:55:45 +00:00
|
|
|
"options": {
|
|
|
|
"mysql": {
|
2018-12-17 10:28:39 +00:00
|
|
|
"table": "itemBarcode"
|
2018-02-14 13:22:35 +00:00
|
|
|
}
|
2018-02-19 10:55:45 +00:00
|
|
|
},
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "Number",
|
|
|
|
"id": true,
|
|
|
|
"description": "Identifier"
|
2018-02-14 13:22:35 +00:00
|
|
|
},
|
2018-02-19 10:55:45 +00:00
|
|
|
"code": {
|
|
|
|
"type": "String",
|
|
|
|
"required": true
|
2018-02-14 13:22:35 +00:00
|
|
|
}
|
2018-02-19 10:55:45 +00:00
|
|
|
},
|
|
|
|
"relations": {
|
|
|
|
"item": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Item",
|
|
|
|
"foreignKey": "itemFk"
|
|
|
|
}
|
2018-02-14 13:22:35 +00:00
|
|
|
}
|
2018-02-19 10:55:45 +00:00
|
|
|
}
|