salix/services/item/common/models/item-barcode.json

29 lines
462 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"
}
}
}