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": [
|
|
|
|
{
|
2017-07-11 07:36:11 +00:00
|
|
|
"accessType": "READ",
|
2017-06-14 10:55:10 +00:00
|
|
|
"principalType": "ROLE",
|
|
|
|
"principalId": "$everyone",
|
2017-07-11 07:36:11 +00:00
|
|
|
"permission": "ALLOW"
|
2017-06-14 10:55:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"accessType": "*",
|
|
|
|
"principalType": "ROLE",
|
|
|
|
"principalId": "root",
|
|
|
|
"permission": "ALLOW"
|
|
|
|
}
|
2017-06-20 13:00:27 +00:00
|
|
|
],
|
|
|
|
"scopes" : {
|
|
|
|
"production" : {"where": {"tpv": {"neq": 0}}}
|
|
|
|
}
|
2017-06-14 10:55:10 +00:00
|
|
|
}
|