salix/modules/item/back/models/item-shelving.json

66 lines
943 B
JSON

{
"name": "ItemShelving",
"base": "VnModel",
"mixins": {
"Loggable": true
},
"options": {
"mysql": {
"table": "itemShelving"
}
},
"properties": {
"id": {
"type": "number",
"id": true,
"description": "Identifier"
},
"shelvingFk": {
"type": "string"
},
"itemFk": {
"type": "number"
},
"created": {
"type": "date"
},
"grouping": {
"type": "number"
},
"isChecked": {
"type": "number"
},
"packing": {
"type": "number"
},
"visible": {
"type": "number"
},
"userFk": {
"type": "number"
},
"available": {
"type": "number"
},
"buyFk": {
"type": "number"
}
},
"relations": {
"item": {
"type": "belongsTo",
"model": "Item",
"foreignKey": "itemFk"
},
"user": {
"type": "belongsTo",
"model": "VnUser",
"foreignKey": "userFk"
},
"shelving": {
"type": "belongsTo",
"model": "Shelving",
"foreignKey": "shelvingFk"
}
}
}