39 lines
684 B
JSON
39 lines
684 B
JSON
{
|
|
"name": "Warehouse",
|
|
"base": "MyModel",
|
|
"validateUpsert": true,
|
|
"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"
|
|
},
|
|
{
|
|
"accessType": "*",
|
|
"principalType": "ROLE",
|
|
"principalId": "root",
|
|
"permission": "ALLOW"
|
|
}
|
|
],
|
|
"scopes" : {
|
|
"production" : {"where": {"isManaged": {"neq": 0}}}
|
|
}
|
|
}
|