mirror of
https://github.com/strapi/strapi.git
synced 2026-01-02 02:08:26 +00:00
92 lines
1.7 KiB
JSON
Executable File
92 lines
1.7 KiB
JSON
Executable File
{
|
|
"connection": "default",
|
|
"collectionName": "restaurants",
|
|
"info": {
|
|
"name": "restaurant",
|
|
"description": ""
|
|
},
|
|
"options": {
|
|
"increments": true,
|
|
"timestamps": [
|
|
"created_at",
|
|
"updated_at"
|
|
],
|
|
"comment": ""
|
|
},
|
|
"attributes": {
|
|
"price_range": {
|
|
"enum": [
|
|
"very_cheap",
|
|
"cheap",
|
|
"average",
|
|
"expensive",
|
|
"very_expensive"
|
|
],
|
|
"type": "enumeration"
|
|
},
|
|
"closing_period": {
|
|
"component": "default.closingperiod",
|
|
"type": "component"
|
|
},
|
|
"name": {
|
|
"maxLength": 50,
|
|
"required": true,
|
|
"minLength": 5,
|
|
"type": "string"
|
|
},
|
|
"address": {
|
|
"model": "address"
|
|
},
|
|
"cover": {
|
|
"model": "file",
|
|
"via": "related",
|
|
"plugin": "upload",
|
|
"required": false
|
|
},
|
|
"images": {
|
|
"collection": "file",
|
|
"via": "related",
|
|
"plugin": "upload",
|
|
"required": false
|
|
},
|
|
"short_description": {
|
|
"type": "text"
|
|
},
|
|
"since": {
|
|
"type": "date"
|
|
},
|
|
"categories": {
|
|
"collection": "category"
|
|
},
|
|
"description": {
|
|
"type": "richtext",
|
|
"required": true
|
|
},
|
|
"services": {
|
|
"component": "default.restaurantservice",
|
|
"repeatable": true,
|
|
"type": "component"
|
|
},
|
|
"menu": {
|
|
"model": "menu",
|
|
"via": "restaurant"
|
|
},
|
|
"opening_times": {
|
|
"component": "default.openingtimes",
|
|
"type": "component",
|
|
"repeatable": true,
|
|
"min": 1,
|
|
"max": 10
|
|
},
|
|
"dz": {
|
|
"type": "dynamiczone",
|
|
"components": [
|
|
"default.closingperiod",
|
|
"default.dish",
|
|
"default.openingtimes",
|
|
"default.restaurantservice"
|
|
]
|
|
}
|
|
}
|
|
}
|