2017-10-13 14:22:45 +00:00
|
|
|
{
|
|
|
|
"name": "Warehouse",
|
2018-01-29 18:57:00 +00:00
|
|
|
"description": "Warehouses from where orders are sent",
|
2017-10-13 14:22:45 +00:00
|
|
|
"base": "VnModel",
|
2018-01-29 11:37:54 +00:00
|
|
|
"options": {
|
|
|
|
"mysql": {
|
|
|
|
"table": "warehouse"
|
|
|
|
}
|
|
|
|
},
|
2017-10-13 14:22:45 +00:00
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"id": true,
|
|
|
|
"type": "Number",
|
|
|
|
"forceId": false
|
|
|
|
},
|
|
|
|
"name": {
|
|
|
|
"type": "String"
|
|
|
|
},
|
2018-01-29 11:37:54 +00:00
|
|
|
"isInventory": {
|
2017-10-13 14:22:45 +00:00
|
|
|
"type": "Number"
|
|
|
|
},
|
|
|
|
"isManaged":{
|
|
|
|
"type":"boolean"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"acls": [
|
|
|
|
{
|
|
|
|
"accessType": "READ",
|
|
|
|
"principalType": "ROLE",
|
|
|
|
"principalId": "$everyone",
|
|
|
|
"permission": "ALLOW"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"scopes" : {
|
|
|
|
"production" : {"where": {"isManaged": {"neq": 0}}}
|
|
|
|
}
|
|
|
|
}
|