mirror of
https://github.com/strapi/strapi.git
synced 2026-01-05 11:45:51 +00:00
141 lines
2.8 KiB
JSON
Executable File
141 lines
2.8 KiB
JSON
Executable File
{
|
|
"kind": "collectionType",
|
|
"collectionName": "addresses",
|
|
"info": {
|
|
"name": "address",
|
|
"description": ""
|
|
},
|
|
"options": {
|
|
"draftAndPublish": false,
|
|
"comment": ""
|
|
},
|
|
"pluginOptions": {
|
|
"i18n": {
|
|
"localized": true
|
|
}
|
|
},
|
|
"attributes": {
|
|
"postal_coder": {
|
|
"type": "string",
|
|
"pluginOptions": {
|
|
"i18n": {
|
|
"localized": true
|
|
}
|
|
}
|
|
},
|
|
"categories": {
|
|
"type": "relation",
|
|
"relation": "manyToMany",
|
|
"target": "application::category.category",
|
|
"inversedBy": "addresses"
|
|
},
|
|
"cover": {
|
|
"type": "media",
|
|
"allowedTypes": ["files", "images", "videos"],
|
|
"required": false,
|
|
"pluginOptions": {
|
|
"i18n": {
|
|
"localized": true
|
|
}
|
|
}
|
|
},
|
|
"images": {
|
|
"type": "media",
|
|
"multiple": true,
|
|
"allowedTypes": ["images"],
|
|
"required": false,
|
|
"pluginOptions": {
|
|
"i18n": {
|
|
"localized": true
|
|
}
|
|
}
|
|
},
|
|
"city": {
|
|
"type": "string",
|
|
"required": true,
|
|
"maxLength": 200,
|
|
"pluginOptions": {
|
|
"i18n": {
|
|
"localized": true
|
|
}
|
|
}
|
|
},
|
|
"left": {
|
|
"relation": "manyToMany",
|
|
"type": "relation",
|
|
"inversedBy": "right",
|
|
"target": "application::address.address"
|
|
},
|
|
"right": {
|
|
"relation": "manyToMany",
|
|
"type": "relation",
|
|
"mappedBy": "left",
|
|
"target": "application::address.address"
|
|
},
|
|
"left_1": {
|
|
"relation": "manyToMany",
|
|
"type": "relation",
|
|
"inversedBy": "right_1",
|
|
"target": "application::address.address"
|
|
},
|
|
"likes": {
|
|
"type": "relation",
|
|
"relation": "oneToMany",
|
|
"target": "application::like.like",
|
|
"mappedBy": "address"
|
|
},
|
|
"right_1": {
|
|
"relation": "manyToMany",
|
|
"type": "relation",
|
|
"mappedBy": "left_1",
|
|
"target": "application::address.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
|
|
}
|
|
}
|
|
}
|