Commit 05edab9e by jaymehta

enquires

1 parent 19abb7f4
......@@ -21,14 +21,14 @@
"age": {
"type": "string"
},
"courseDetail": {
"type": "relation",
"relation": "oneToOne",
"target": "api::course-detail.course-detail",
"inversedBy": "endUser"
},
"email": {
"type": "string"
},
"enquiries": {
"type": "relation",
"relation": "oneToOne",
"target": "api::enquiry.enquiry",
"mappedBy": "endUser"
}
}
}
{
"kind": "collectionType",
"collectionName": "course_details",
"collectionName": "enquires",
"info": {
"singularName": "course-detail",
"pluralName": "course-details",
"displayName": "Course-details"
"singularName": "enquiry",
"pluralName": "enquires",
"displayName": "Enquires",
"description": ""
},
"options": {
"draftAndPublish": true
},
"pluginOptions": {},
"attributes": {
"experience": {
"type": "relation",
"relation": "oneToOne",
"target": "api::experience.experience",
"inversedBy": "enquiries"
},
"endUser": {
"type": "relation",
"relation": "oneToOne",
"target": "api::end-user.end-user",
"mappedBy": "courseDetail"
"inversedBy": "enquiries"
},
"experience": {
"status": {
"type": "enumeration",
"enum": [
"pending",
"closed"
]
},
"date": {
"type": "date"
},
"vendor": {
"type": "relation",
"relation": "oneToOne",
"target": "api::experience.experience",
"mappedBy": "courseDetail"
"target": "api::vendor.vendor",
"inversedBy": "enquiries"
}
}
}
'use strict';
/**
* course-detail controller
* enquiry controller
*/
const { createCoreController } = require('@strapi/strapi').factories;
module.exports = createCoreController('api::course-detail.course-detail');
module.exports = createCoreController('api::enquiry.enquiry');
'use strict';
/**
* course-detail router
* enquiry router
*/
const { createCoreRouter } = require('@strapi/strapi').factories;
module.exports = createCoreRouter('api::course-detail.course-detail');
module.exports = createCoreRouter('api::enquiry.enquiry');
'use strict';
/**
* course-detail service
* enquiry service
*/
const { createCoreService } = require('@strapi/strapi').factories;
module.exports = createCoreService('api::course-detail.course-detail');
module.exports = createCoreService('api::enquiry.enquiry');
......@@ -45,12 +45,6 @@
"target": "api::vendor.vendor",
"inversedBy": "experiences"
},
"courseDetail": {
"type": "relation",
"relation": "oneToOne",
"target": "api::course-detail.course-detail",
"inversedBy": "experience"
},
"masterPincode": {
"type": "relation",
"relation": "oneToOne",
......@@ -154,6 +148,12 @@
},
"minGroupSize": {
"type": "integer"
},
"enquiries": {
"type": "relation",
"relation": "oneToOne",
"target": "api::enquiry.enquiry",
"mappedBy": "experience"
}
}
}
......@@ -67,6 +67,12 @@
},
"addressLine1": {
"type": "text"
},
"enquiries": {
"type": "relation",
"relation": "oneToOne",
"target": "api::enquiry.enquiry",
"inversedBy": "vendor"
}
}
}
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!