strapi/examples/getstarted/api/restaurant/models/Restaurant.settings.json
2019-09-11 16:49:31 +02:00

76 lines
1.4 KiB
JSON
Executable File

{
"connection": "default",
"collectionName": "restaurants",
"info": {
"name": "restaurant",
"description": ""
},
"options": {
"increments": true,
"timestamps": [
"created_at",
"updated_at"
],
"comment": ""
},
"attributes": {
"name": {
"maxLength": 50,
"required": true,
"minLength": 5,
"type": "string"
},
"cover": {
"model": "file",
"via": "related",
"plugin": "upload"
},
"images": {
"collection": "file",
"via": "related",
"plugin": "upload"
},
"menu": {
"model": "menu",
"via": "restaurant"
},
"categories": {
"collection": "category"
},
"price_range": {
"enum": [
"very_cheap",
"cheap",
"average",
"expensive",
"very_expensive"
],
"type": "enumeration"
},
"description": {
"type": "richtext",
"required": true
},
"opening_times": {
"group": "openingtimes",
"type": "group",
"required": true,
"repeatable": true,
"min": 1,
"max": 10
},
"closing_period": {
"group": "closingperiod",
"type": "group"
},
"services": {
"group": "restaurantservice",
"required": true,
"repeatable": true,
"type": "group"
},
"address": {
"model": "address"
}
}
}