strapi/examples/getstarted/api/review/models/Review.settings.json
soupette 4b207e6cc0 Add D&P key to all models. Change UI modal divider
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-09-22 17:39:10 +02:00

37 lines
638 B
JSON
Executable File

{
"collectionName": "reviews",
"info": {
"name": "review",
"description": ""
},
"options": {
"draftAndPublish": false,
"increments": true,
"timestamps": ["created_at", "updated_at"],
"comment": ""
},
"attributes": {
"comment": {
"type": "text",
"required": true
},
"rating": {
"type": "integer",
"required": true,
"min": 1,
"max": 5
},
"likes": {
"via": "review",
"collection": "like"
},
"author": {
"model": "user",
"plugin": "users-permissions"
},
"restaurant": {
"model": "restaurant"
}
}
}