Commit 644a271b by Gaurav Dev

added model

1 parent 056b9142
......@@ -18,10 +18,10 @@ const config = {
notifications: { releases: false },
translations: {
en: {
"app.components.LeftMenu.navbrand.title": "Offers",
"app.components.LeftMenu.navbrand.title": "Offers",
"app.components.LeftMenu.navbrand.title": "Centerl Star",
"app.components.LeftMenu.navbrand.title": "Centerl Star",
"app.components.LeftMenu.navbrand.subtitle": "",
"Auth.form.welcome.title": "Welcome to Offers",
"Auth.form.welcome.title": "Welcome to Centerl Star",
"Auth.form.welcome.subtitle": "Log in to your App"
}
},
......
{
"kind": "collectionType",
"collectionName": "mercedesmodels",
"info": {
"singularName": "mercedesmodel",
"pluralName": "mercedesmodels",
"displayName": "mercedesmodel",
"description": ""
},
"options": {
"draftAndPublish": true
},
"pluginOptions": {},
"attributes": {
"title": {
"type": "string"
},
"price": {
"type": "string"
},
"carImages": {
"allowedTypes": [
"images",
"files",
"videos",
"audios"
],
"type": "media",
"multiple": true
},
"model": {
"type": "enumeration",
"enum": [
"AMG",
"MAYBACH"
]
},
"fuleType": {
"type": "enumeration",
"enum": [
"Electric",
"Plug-in Hybrid"
]
},
"bodytype": {
"type": "enumeration",
"enum": [
"Limousine",
"SUV Range",
"Hatchback",
"Coupes",
"Cabriolets / Roadsters"
]
}
}
}
'use strict';
/**
* mercedesmodel controller
*/
const { createCoreController } = require('@strapi/strapi').factories;
module.exports = createCoreController('api::mercedesmodel.mercedesmodel');
'use strict';
/**
* mercedesmodel router
*/
const { createCoreRouter } = require('@strapi/strapi').factories;
module.exports = createCoreRouter('api::mercedesmodel.mercedesmodel');
'use strict';
/**
* mercedesmodel service
*/
const { createCoreService } = require('@strapi/strapi').factories;
module.exports = createCoreService('api::mercedesmodel.mercedesmodel');
......@@ -18,6 +18,30 @@
"repeatable": true,
"component": "layout.car-image",
"required": false
},
"model": {
"type": "enumeration",
"enum": [
"AMG",
"MAYBACH"
]
},
"fuletype": {
"type": "enumeration",
"enum": [
"Electric",
"Plug-in Hybrid"
]
},
"bodytype": {
"type": "enumeration",
"enum": [
"Limousine",
"SUV Range",
"Hatchback",
"Coupes",
"Cabriolets / Roadsters"
]
}
}
}
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!