salix/services/item/common/models/itemBarcode.json

29 lines
516 B
JSON
Raw Normal View History

{
"name": "ItemBarcode",
"base": "VnModel",
"options": {
"mysql": {
"table": "itemBarcode",
"database": "vn"
}
},
"properties": {
"id": {
"type": "Number",
"id": true,
"description": "Identifier"
},
"code": {
"type": "String",
"required": true
}
},
"relations": {
"item": {
"type": "belongsTo",
"model": "Item",
"foreignKey": "itemFk"
}
}
}