strapi/examples/getstarted/api/post/models/Post.settings.json
2019-12-10 17:24:55 +01:00

62 lines
1.1 KiB
JSON

{
"connection": "default",
"collectionName": "posts",
"info": {
"name": "post",
"description": ""
},
"options": {
"increments": true,
"timestamps": true,
"comment": ""
},
"attributes": {
"title": {
"type": "string",
"default": "my super title"
},
"cover": {
"model": "file",
"via": "related",
"plugin": "upload"
},
"images": {
"collection": "file",
"via": "related",
"plugin": "upload"
},
"author": {
"model": "user",
"plugin": "users-permissions"
},
"metas": {
"type": "component",
"component": "default.metas",
"min": 1,
"repeatable": true
},
"content": {
"type": "dynamiczone",
"components": [
"blog.code_snippet",
"blog.quote",
"blog.rich_text",
"blog.slider",
"blog.text_with_image"
],
"min": 2
},
"contente": {
"type": "dynamiczone",
"components": [
"blog.code_snippet",
"blog.quote",
"blog.rich_text",
"blog.slider",
"blog.text_with_image"
],
"max": 3
}
}
}