2018-02-14 13:22:35 +00:00
|
|
|
{
|
2018-02-19 10:55:45 +00:00
|
|
|
"name": "ItemBarcode",
|
|
|
|
"base": "VnModel",
|
|
|
|
"options": {
|
|
|
|
"mysql": {
|
|
|
|
"table": "itemBarcode",
|
|
|
|
"database": "vn"
|
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
|
|
|
}
|