salix/back/models/warehouse.json

51 lines
834 B
JSON
Raw Normal View History

2017-10-13 14:22:45 +00:00
{
"name": "Warehouse",
"description": "Warehouses from where orders are sent",
2017-10-13 14:22:45 +00:00
"base": "VnModel",
"options": {
"mysql": {
"table": "warehouse"
}
},
2017-10-13 14:22:45 +00:00
"properties": {
"id": {
2024-05-31 11:08:48 +00:00
"id": true,
"type": "number",
"forceId": false
2017-10-13 14:22:45 +00:00
},
"name": {
2024-05-31 11:08:48 +00:00
"type": "string"
2017-10-13 14:22:45 +00:00
},
"code": {
2024-05-31 11:08:48 +00:00
"type": "string"
},
"isInventory": {
2024-05-31 11:08:48 +00:00
"type": "number"
2017-10-13 14:22:45 +00:00
},
2024-05-31 11:08:48 +00:00
"isManaged": {
"type": "boolean"
}
},
"relations": {
"address": {
"type": "belongsTo",
"model": "Address",
"foreignKey": "addressFk"
2017-10-13 14:22:45 +00:00
}
},
"acls": [
{
"accessType": "READ",
"principalType": "ROLE",
"principalId": "$everyone",
"permission": "ALLOW"
}
],
2024-05-31 11:08:48 +00:00
"scope": {
"where": {
"isForTicket": {
"neq": 0
}
}
}
}