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

39 lines
669 B
JSON
Raw Normal View History

2017-06-14 10:55:10 +00:00
{
"name": "Warehouse",
"base": "MyModel",
"validateUpsert": true,
"properties": {
"id": {
"id": true,
"type": "Number",
"forceId": false
},
"name": {
"type": "String"
},
"tpv": {
"type": "Number"
},
2017-06-20 08:40:04 +00:00
"inventory": {
2017-06-14 10:55:10 +00:00
"type": "Number"
}
},
"acls": [
{
"accessType": "*",
"principalType": "ROLE",
"principalId": "$everyone",
"permission": "DENY"
},
{
"accessType": "*",
"principalType": "ROLE",
"principalId": "root",
"permission": "ALLOW"
}
],
"scopes" : {
"production" : {"where": {"tpv": {"neq": 0}}}
}
2017-06-14 10:55:10 +00:00
}