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

39 lines
673 B
JSON

{
"name": "Warehouse",
"base": "MyModel",
"validateUpsert": true,
"properties": {
"id": {
"id": true,
"type": "Number",
"forceId": false
},
"name": {
"type": "String"
},
"tpv": {
"type": "Number"
},
"inventory": {
"type": "Number"
}
},
"acls": [
{
"accessType": "READ",
"principalType": "ROLE",
"principalId": "$everyone",
"permission": "ALLOW"
},
{
"accessType": "*",
"principalType": "ROLE",
"principalId": "root",
"permission": "ALLOW"
}
],
"scopes" : {
"production" : {"where": {"tpv": {"neq": 0}}}
}
}