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

32 lines
532 B
JSON

{
"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}}}
}
}