strapi-plugin-cookie-manager
Version:
61 lines (60 loc) • 1.17 kB
JSON
{
"kind": "collectionType",
"singularName": "cookie-category",
"pluralName": "cookie-categories",
"displayName": "Cookie Categories",
"draftAndPublish": false,
"pluginOptions": {
"i18n": {
"localized": true
},
"content-manager": {
"visible": false
}
},
"attributes": {
"name": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string",
"required": true
},
"description": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "text",
"required": true
},
"isNecessary": {
"pluginOptions": {
"i18n": {
"localized": false
}
},
"type": "boolean",
"default": false,
"required": true
},
"key": {
"pluginOptions": {
"i18n": {
"localized": false
}
},
"type": "string",
"regex": "^(?!-)(?!.*?-$)[a-z0-9]*(?:-[a-z0-9]+)*$"
},
"cookies": {
"type": "relation",
"relation": "oneToMany",
"target": "api::cookie.cookie",
"mappedBy": "category"
}
}
}