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

62 lines
978 B
JSON
Raw Normal View History

2020-03-23 10:21:25 +00:00
{
"name": "ItemShelving",
2023-11-30 12:23:10 +00:00
"base": "VnModel",
"mixins": {
"Loggable": true
},
2020-03-23 10:21:25 +00:00
"options": {
"mysql": {
"table": "itemShelving"
}
},
"properties": {
"id": {
2022-05-12 07:47:47 +00:00
"type": "number",
2020-03-23 10:21:25 +00:00
"id": true,
"description": "Identifier"
},
2020-11-09 13:53:26 +00:00
"shelvingFk": {
2022-05-12 07:47:47 +00:00
"type": "string"
2020-11-09 13:53:26 +00:00
},
"itemFk": {
2022-05-12 07:47:47 +00:00
"type": "number"
2020-03-23 10:21:25 +00:00
},
"created": {
"type": "date"
2023-09-22 10:29:56 +00:00
},
"grouping": {
"type": "number"
},
"isChecked": {
"type": "boolean"
},
2023-09-22 10:29:56 +00:00
"packing": {
"type": "number"
},
"visible": {
"type": "number"
},
"userFk": {
"type": "number"
2020-03-23 10:21:25 +00:00
}
},
"relations": {
"item": {
"type": "belongsTo",
"model": "Item",
"foreignKey": "itemFk"
},
"user": {
"type": "belongsTo",
2023-01-24 08:05:50 +00:00
"model": "VnUser",
2020-03-23 10:21:25 +00:00
"foreignKey": "userFk"
},
"shelving": {
"type": "belongsTo",
"model": "Shelving",
2023-11-30 15:25:13 +00:00
"foreignKey": "shelvingFk",
"primaryKey": "code"
}
2020-03-23 10:21:25 +00:00
}
}