mirror of
https://github.com/strapi/strapi.git
synced 2026-01-07 04:33:46 +00:00
128 lines
2.3 KiB
JSON
Executable File
128 lines
2.3 KiB
JSON
Executable File
{
|
|
"kind": "collectionType",
|
|
"collectionName": "addresses",
|
|
"info": {
|
|
"name": "address",
|
|
"description": ""
|
|
},
|
|
"options": {
|
|
"draftAndPublish": true,
|
|
"increments": true,
|
|
"timestamps": [
|
|
"created_at",
|
|
"updated_at"
|
|
],
|
|
"comment": ""
|
|
},
|
|
"pluginOptions": {
|
|
"i18n": {
|
|
"localized": true
|
|
}
|
|
},
|
|
"attributes": {
|
|
"postal_coder": {
|
|
"type": "string",
|
|
"pluginOptions": {
|
|
"i18n": {
|
|
"localized": true
|
|
}
|
|
}
|
|
},
|
|
"categories": {
|
|
"collection": "category",
|
|
"via": "addresses",
|
|
"dominant": true
|
|
},
|
|
"cover": {
|
|
"model": "file",
|
|
"via": "related",
|
|
"allowedTypes": [
|
|
"files",
|
|
"images",
|
|
"videos"
|
|
],
|
|
"plugin": "upload",
|
|
"required": false,
|
|
"pluginOptions": {
|
|
"i18n": {
|
|
"localized": true
|
|
}
|
|
}
|
|
},
|
|
"images": {
|
|
"collection": "file",
|
|
"via": "related",
|
|
"allowedTypes": [
|
|
"images"
|
|
],
|
|
"plugin": "upload",
|
|
"required": false,
|
|
"pluginOptions": {
|
|
"i18n": {
|
|
"localized": true
|
|
}
|
|
}
|
|
},
|
|
"city": {
|
|
"type": "string",
|
|
"required": true,
|
|
"maxLength": 200,
|
|
"pluginOptions": {
|
|
"i18n": {
|
|
"localized": true
|
|
}
|
|
}
|
|
},
|
|
"likes": {
|
|
"collection": "like",
|
|
"via": "address"
|
|
},
|
|
"json": {
|
|
"type": "json",
|
|
"pluginOptions": {
|
|
"i18n": {
|
|
"localized": true
|
|
}
|
|
}
|
|
},
|
|
"slug": {
|
|
"type": "uid",
|
|
"targetField": "city"
|
|
},
|
|
"notrepeat_req": {
|
|
"type": "component",
|
|
"repeatable": false,
|
|
"pluginOptions": {
|
|
"i18n": {
|
|
"localized": false
|
|
}
|
|
},
|
|
"component": "blog.test-como",
|
|
"required": true
|
|
},
|
|
"repeat_req": {
|
|
"type": "component",
|
|
"repeatable": true,
|
|
"pluginOptions": {
|
|
"i18n": {
|
|
"localized": true
|
|
}
|
|
},
|
|
"component": "blog.test-como",
|
|
"required": true
|
|
},
|
|
"repeat_req_min": {
|
|
"type": "component",
|
|
"repeatable": true,
|
|
"pluginOptions": {
|
|
"i18n": {
|
|
"localized": true
|
|
}
|
|
},
|
|
"component": "blog.test-como",
|
|
"required": false,
|
|
"min": 2
|
|
}
|
|
}
|
|
}
|