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