strapi/examples/getstarted/api/article/models/Article.settings.json

101 lines
1.7 KiB
JSON

{
"connection": "default",
"collectionName": "articles",
"info": {
"name": "article",
"description": ""
},
"options": {
"increments": true,
"timestamps": [
"created_at",
"updated_at"
],
"comment": ""
},
"attributes": {
"title": {
"type": "string",
"required": true,
"unique": true
},
"content": {
"type": "richtext",
"default": "content"
},
"published": {
"type": "boolean"
},
"json": {
"type": "json"
},
"number": {
"type": "integer"
},
"big_number": {
"type": "biginteger"
},
"float_number": {
"type": "float"
},
"decimal_number": {
"type": "decimal"
},
"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": {
"collection": "tag",
"via": "linkedArticles",
"dominant": true
},
"fb_cta": {
"type": "group",
"group": "facebook_cta"
},
"mainIngredient": {
"type": "group",
"group": "ingredients"
},
"ingredients": {
"type": "group",
"group": "ingredients",
"repeatable": true,
"min": 1,
"max": 10
},
"yoyo": {
"group": "ingredients",
"required": true,
"repeatable": true,
"min": 1,
"type": "group"
}
}
}