salix/services/loopback/common/models/warehouse.json

32 lines
532 B
JSON
Raw Normal View History

2017-10-13 14:22:45 +00:00
{
"name": "Warehouse",
"base": "VnModel",
"properties": {
"id": {
"id": true,
"type": "Number",
"forceId": false
},
"name": {
"type": "String"
},
"inventory": {
"type": "Number"
},
"isManaged":{
"type":"boolean"
}
},
"acls": [
{
"accessType": "READ",
"principalType": "ROLE",
"principalId": "$everyone",
"permission": "ALLOW"
}
],
"scopes" : {
"production" : {"where": {"isManaged": {"neq": 0}}}
}
}