{
  "name": "recipe",
  "plural": "recipes",
  "base": "PersistedModel",
  "idInjection": false,
  "options": {
    "validateUpsert": true
  },
  "properties": {
    "recipeID": {
      "type": "number",
      "id": true
    },
    "categoryID": {
      "type": "number"
    },
    "recipe": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "preheat_temp": {
      "type": "number"
    },
    "filename": {
      "type": "string"
    },
    "timePrep": {
      "type": "number"
    },
    "timeCook": {
      "type": "number"
    },
    "timeReady": {
      "type": "number"
    },
    "link": {
      "type": "string"
    },
    "fromWho": {
      "type": "string"
    },
    "instructions": {
      "type": "string"
    },
    "servings": {
      "type": "number"
    },
    "multiplier": {
      "type": "number"
    },
    "yield": {
      "type": "string"
    },
    "dateCreated": {
      "type": "date"
    },
    "dateModified": {
      "type": "date"
    }
  },
  "validations": [],
  "relations": {
    "recipeIngredients": {
      "type": "hasMany",
      "model": "recipeIngredient",
      "foreignKey": "recipeID"
    },
    "recipeInstructions": {
      "type": "hasMany",
      "model": "recipeInstructions",
      "foreignKey": "recipeID"
    },
    "recipeCategories": {
      "type": "hasOne",
      "model": "recipeCategories",
      "foreignKey": "categoryID"
    }
  },
  "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": {}
}
