Commit 05edab9e by jaymehta

enquires

1 parent 19abb7f4
...@@ -21,14 +21,14 @@ ...@@ -21,14 +21,14 @@
"age": { "age": {
"type": "string" "type": "string"
}, },
"courseDetail": {
"type": "relation",
"relation": "oneToOne",
"target": "api::course-detail.course-detail",
"inversedBy": "endUser"
},
"email": { "email": {
"type": "string" "type": "string"
},
"enquiries": {
"type": "relation",
"relation": "oneToOne",
"target": "api::enquiry.enquiry",
"mappedBy": "endUser"
} }
} }
} }
{ {
"kind": "collectionType", "kind": "collectionType",
"collectionName": "course_details", "collectionName": "enquires",
"info": { "info": {
"singularName": "course-detail", "singularName": "enquiry",
"pluralName": "course-details", "pluralName": "enquires",
"displayName": "Course-details" "displayName": "Enquires",
"description": ""
}, },
"options": { "options": {
"draftAndPublish": true "draftAndPublish": true
}, },
"pluginOptions": {}, "pluginOptions": {},
"attributes": { "attributes": {
"experience": {
"type": "relation",
"relation": "oneToOne",
"target": "api::experience.experience",
"inversedBy": "enquiries"
},
"endUser": { "endUser": {
"type": "relation", "type": "relation",
"relation": "oneToOne", "relation": "oneToOne",
"target": "api::end-user.end-user", "target": "api::end-user.end-user",
"mappedBy": "courseDetail" "inversedBy": "enquiries"
}, },
"experience": { "status": {
"type": "enumeration",
"enum": [
"pending",
"closed"
]
},
"date": {
"type": "date"
},
"vendor": {
"type": "relation", "type": "relation",
"relation": "oneToOne", "relation": "oneToOne",
"target": "api::experience.experience", "target": "api::vendor.vendor",
"mappedBy": "courseDetail" "inversedBy": "enquiries"
} }
} }
} }
'use strict'; 'use strict';
/** /**
* course-detail controller * enquiry controller
*/ */
const { createCoreController } = require('@strapi/strapi').factories; const { createCoreController } = require('@strapi/strapi').factories;
module.exports = createCoreController('api::course-detail.course-detail'); module.exports = createCoreController('api::enquiry.enquiry');
'use strict'; 'use strict';
/** /**
* course-detail router * enquiry router
*/ */
const { createCoreRouter } = require('@strapi/strapi').factories; const { createCoreRouter } = require('@strapi/strapi').factories;
module.exports = createCoreRouter('api::course-detail.course-detail'); module.exports = createCoreRouter('api::enquiry.enquiry');
'use strict'; 'use strict';
/** /**
* course-detail service * enquiry service
*/ */
const { createCoreService } = require('@strapi/strapi').factories; const { createCoreService } = require('@strapi/strapi').factories;
module.exports = createCoreService('api::course-detail.course-detail'); module.exports = createCoreService('api::enquiry.enquiry');
...@@ -45,12 +45,6 @@ ...@@ -45,12 +45,6 @@
"target": "api::vendor.vendor", "target": "api::vendor.vendor",
"inversedBy": "experiences" "inversedBy": "experiences"
}, },
"courseDetail": {
"type": "relation",
"relation": "oneToOne",
"target": "api::course-detail.course-detail",
"inversedBy": "experience"
},
"masterPincode": { "masterPincode": {
"type": "relation", "type": "relation",
"relation": "oneToOne", "relation": "oneToOne",
...@@ -154,6 +148,12 @@ ...@@ -154,6 +148,12 @@
}, },
"minGroupSize": { "minGroupSize": {
"type": "integer" "type": "integer"
},
"enquiries": {
"type": "relation",
"relation": "oneToOne",
"target": "api::enquiry.enquiry",
"mappedBy": "experience"
} }
} }
} }
...@@ -67,6 +67,12 @@ ...@@ -67,6 +67,12 @@
}, },
"addressLine1": { "addressLine1": {
"type": "text" "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!