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", "collectionName": "brands",
"info": { "info": {
"singularName": "brand", "singularName": "brand",
@ -11,33 +11,30 @@
}, },
"pluginOptions": { "pluginOptions": {
"i18n": { "i18n": {
"localized": false "localized": true
} }
}, },
"attributes": { "attributes": {
"name": { "name": {
"pluginOptions": { "pluginOptions": {
"i18n": { "i18n": {
"localized": false "localized": true
} }
}, },
"type": "string", "type": "string"
"required": true,
"unique": true
}, },
"slug": { "slug": {
"pluginOptions": { "pluginOptions": {
"i18n": { "i18n": {
"localized": false "localized": true
} }
}, },
"type": "string", "type": "string"
"unique": true
}, },
"shortDescription": { "shortDescription": {
"pluginOptions": { "pluginOptions": {
"i18n": { "i18n": {
"localized": false "localized": true
} }
}, },
"type": "blocks" "type": "blocks"
@ -45,7 +42,7 @@
"description": { "description": {
"pluginOptions": { "pluginOptions": {
"i18n": { "i18n": {
"localized": false "localized": true
} }
}, },
"type": "blocks" "type": "blocks"
@ -58,7 +55,7 @@
"multiple": false, "multiple": false,
"pluginOptions": { "pluginOptions": {
"i18n": { "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');