mirror of
https://github.com/strapi/strapi.git
synced 2025-12-31 09:15:55 +00:00
85 lines
1.5 KiB
JSON
85 lines
1.5 KiB
JSON
{
|
|
"connection": "default",
|
|
"collectionName": "articles",
|
|
"info": {
|
|
"name": "article",
|
|
"description": ""
|
|
},
|
|
"options": {
|
|
"increments": true,
|
|
"timestamps": true,
|
|
"comment": ""
|
|
},
|
|
"attributes": {
|
|
"title": {
|
|
"type": "string",
|
|
"default": "soupette",
|
|
"required": true,
|
|
"unique": true
|
|
},
|
|
"content": {
|
|
"type": "wysiwyg"
|
|
},
|
|
"published": {
|
|
"type": "boolean"
|
|
},
|
|
"json": {
|
|
"type": "json"
|
|
},
|
|
"number": {
|
|
"type": "integer"
|
|
},
|
|
"date": {
|
|
"type": "date"
|
|
},
|
|
"enum": {
|
|
"type": "enumeration",
|
|
"enum": [
|
|
"morning,",
|
|
"noon"
|
|
]
|
|
},
|
|
"bool": {
|
|
"type": "boolean"
|
|
},
|
|
"pic": {
|
|
"model": "file",
|
|
"via": "related",
|
|
"plugin": "upload"
|
|
},
|
|
"pictures": {
|
|
"collection": "file",
|
|
"via": "related",
|
|
"plugin": "upload"
|
|
},
|
|
"mainTag": {
|
|
"model": "tag"
|
|
},
|
|
"linkedTags": {
|
|
"collection": "tag"
|
|
},
|
|
"manyTags": {
|
|
"dominant": true,
|
|
"collection": "tag",
|
|
"via": "linkedArticles"
|
|
},
|
|
"fb_cta": {
|
|
"required": true,
|
|
"type": "group",
|
|
"group": "cta_facebook",
|
|
"repeatable": false
|
|
},
|
|
"mainIngredient": {
|
|
"type": "group",
|
|
"group": "ingredients",
|
|
"repeatable": false
|
|
},
|
|
"ingredients": {
|
|
"type": "group",
|
|
"group": "ingredients",
|
|
"repeatable": true,
|
|
"min": 1,
|
|
"max": 10
|
|
}
|
|
}
|
|
} |