{
  "kind": "collectionType",
  "collectionName": "reviews",
  "info": {
    "displayName": "Review",
    "singularName": "review",
    "pluralName": "reviews",
    "description": ""
  },
  "options": {
    "comment": "",
    "draftAndPublish": false
  },
  "attributes": {
    "comment": {
      "type": "text",
      "required": true
    },
    "rating": {
      "type": "integer",
      "required": true,
      "min": 1,
      "max": 5
    },
    "likes": {
      "type": "relation",
      "relation": "oneToMany",
      "target": "api::like.like",
      "mappedBy": "review"
    },
    "author": {
      "type": "relation",
      "relation": "oneToOne",
      "target": "plugin::users-permissions.user"
    },
    "restaurant": {
      "type": "relation",
      "relation": "oneToOne",
      "target": "api::restaurant.restaurant"
    }
  }
}
