strapi/examples/getstarted/api/review/models/Review.settings.json

39 lines
626 B
JSON
Raw Normal View History

2019-08-22 14:10:45 +02:00
{
"collectionName": "reviews",
"info": {
"name": "review",
"description": ""
},
"options": {
"increments": true,
"timestamps": [
"created_at",
"updated_at"
],
"comment": ""
},
"attributes": {
"comment": {
"type": "text",
"required": true
},
"rating": {
"type": "integer",
"required": true,
"min": 1,
"max": 5
},
"likes": {
2019-12-09 19:10:27 +01:00
"via": "review",
"collection": "like"
2019-08-22 14:10:45 +02:00
},
"author": {
"model": "user",
"plugin": "users-permissions"
},
"restaurant": {
"model": "restaurant"
}
}
2019-12-09 19:10:27 +01:00
}