{
  "name": "ingredient",
  "plural": "ingredients",
  "base": "PersistedModel",
  "idInjection": false,
  "options": {
    "validateUpsert": true
  },
  "properties": {
    "ingredientID": {
      "type": "number",
      "id": true
    },
    "ingredient": {
      "type": "string"
    },
    "isActive": {
      "type": "number"
    }
  },
  "validations": [],
  "relations": {
    "ingredientAmounts": {
      "type": "hasMany",
      "model": "recipeIngredient",
      "foreignKey": "ingredientID"
    }
  },
  "acls": [
    {
      "accessType": "*",
      "principalType": "ROLE",
      "principalId": "$everyone",
      "permission": "DENY"
    },
    {
      "accessType": "WRITE",
      "principalType": "ROLE",
      "principalId": "$authenticated",
      "permission": "ALLOW"
    },
    {
      "accessType": "READ",
      "principalType": "ROLE",
      "principalId": "$everyone",
      "permission": "ALLOW"
    }
  ],
  "methods": {}
}
