52 lines
775 B
JSON
52 lines
775 B
JSON
|
{
|
||
|
"name": "ItemShelvingLog",
|
||
|
"base": "VnModel",
|
||
|
"mixins": {
|
||
|
"Loggable": true
|
||
|
},
|
||
|
"options": {
|
||
|
"mysql": {
|
||
|
"table": "itemShelvingLog"
|
||
|
}
|
||
|
},
|
||
|
"properties": {
|
||
|
"id": {
|
||
|
"type": "number",
|
||
|
"id": true,
|
||
|
"description": "Identifier"
|
||
|
},
|
||
|
"created": {
|
||
|
"type": "date"
|
||
|
},
|
||
|
"shelvingFk": {
|
||
|
"type": "string"
|
||
|
},
|
||
|
"itemFk": {
|
||
|
"type": "number"
|
||
|
},
|
||
|
"visible": {
|
||
|
"type": "number"
|
||
|
},
|
||
|
"accion": {
|
||
|
"type": "string"
|
||
|
}
|
||
|
},
|
||
|
"relations": {
|
||
|
"item": {
|
||
|
"type": "belongsTo",
|
||
|
"model": "Item",
|
||
|
"foreignKey": "itemFk"
|
||
|
},
|
||
|
"worker": {
|
||
|
"type": "belongsTo",
|
||
|
"model": "Worker",
|
||
|
"foreignKey": "workerFk"
|
||
|
},
|
||
|
"shelving": {
|
||
|
"type": "belongsTo",
|
||
|
"model": "Shelving",
|
||
|
"foreignKey": "shelvingFk",
|
||
|
"primaryKey": "code"
|
||
|
}
|
||
|
}
|
||
|
}
|