29 lines
516 B
JSON
29 lines
516 B
JSON
{
|
|
"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"
|
|
}
|
|
}
|
|
}
|