mirror of
https://github.com/strapi/strapi.git
synced 2025-11-02 10:55:37 +00:00
Add images relation to restaurants example
This commit is contained in:
parent
7d51b8625d
commit
836920b4f8
@ -7,7 +7,10 @@
|
||||
},
|
||||
"options": {
|
||||
"increments": true,
|
||||
"timestamps": ["created_at", "updated_at"],
|
||||
"timestamps": [
|
||||
"created_at",
|
||||
"updated_at"
|
||||
],
|
||||
"comment": ""
|
||||
},
|
||||
"attributes": {
|
||||
@ -22,6 +25,11 @@
|
||||
"via": "related",
|
||||
"plugin": "upload"
|
||||
},
|
||||
"images": {
|
||||
"collection": "file",
|
||||
"via": "related",
|
||||
"plugin": "upload"
|
||||
},
|
||||
"menu": {
|
||||
"model": "menu",
|
||||
"via": "restaurant"
|
||||
@ -33,7 +41,13 @@
|
||||
"model": "address"
|
||||
},
|
||||
"price_range": {
|
||||
"enum": ["very_cheap", "cheap", "average", "expensive", "very_expensive"],
|
||||
"enum": [
|
||||
"very_cheap",
|
||||
"cheap",
|
||||
"average",
|
||||
"expensive",
|
||||
"very_expensive"
|
||||
],
|
||||
"type": "enumeration"
|
||||
},
|
||||
"description": {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user