Updated Brand schema.

This commit is contained in:
David Ball 2024-07-23 00:24:32 +00:00
parent ce0cea0965
commit 5e367e314d
4 changed files with 30 additions and 12 deletions

View File

@ -1,5 +1,5 @@
{
"kind": "singleType",
"kind": "collectionType",
"collectionName": "brands",
"info": {
"singularName": "brand",
@ -11,33 +11,30 @@
},
"pluginOptions": {
"i18n": {
"localized": false
"localized": true
}
},
"attributes": {
"name": {
"pluginOptions": {
"i18n": {
"localized": false
"localized": true
}
},
"type": "string",
"required": true,
"unique": true
"type": "string"
},
"slug": {
"pluginOptions": {
"i18n": {
"localized": false
"localized": true
}
},
"type": "string",
"unique": true
"type": "string"
},
"shortDescription": {
"pluginOptions": {
"i18n": {
"localized": false
"localized": true
}
},
"type": "blocks"
@ -45,7 +42,7 @@
"description": {
"pluginOptions": {
"i18n": {
"localized": false
"localized": true
}
},
"type": "blocks"
@ -58,7 +55,7 @@
"multiple": false,
"pluginOptions": {
"i18n": {
"localized": false
"localized": true
}
}
}

View File

@ -0,0 +1,7 @@
/**
* brand controller
*/
import { factories } from '@strapi/strapi'
export default factories.createCoreController('api::brand.brand');

View File

@ -0,0 +1,7 @@
/**
* brand router
*/
import { factories } from '@strapi/strapi';
export default factories.createCoreRouter('api::brand.brand');

View File

@ -0,0 +1,7 @@
/**
* brand service
*/
import { factories } from '@strapi/strapi';
export default factories.createCoreService('api::brand.brand');