Commit 972068a1 by jaymehta

wishlist entity

1 parent 490d1a8a
...@@ -35,6 +35,12 @@ ...@@ -35,6 +35,12 @@
"relation": "oneToMany", "relation": "oneToMany",
"target": "api::enquiry.enquiry", "target": "api::enquiry.enquiry",
"mappedBy": "end_user" "mappedBy": "end_user"
},
"wishlists": {
"type": "relation",
"relation": "oneToMany",
"target": "api::wishlist.wishlist",
"mappedBy": "endUser"
} }
} }
} }
...@@ -154,6 +154,12 @@ ...@@ -154,6 +154,12 @@
"relation": "oneToMany", "relation": "oneToMany",
"target": "api::enquiry.enquiry", "target": "api::enquiry.enquiry",
"mappedBy": "experience" "mappedBy": "experience"
},
"wishlists": {
"type": "relation",
"relation": "oneToMany",
"target": "api::wishlist.wishlist",
"mappedBy": "experience"
} }
} }
} }
{
"kind": "collectionType",
"collectionName": "wishlists",
"info": {
"singularName": "wishlist",
"pluralName": "wishlists",
"displayName": "Wishlist"
},
"options": {
"draftAndPublish": true
},
"pluginOptions": {},
"attributes": {
"endUser": {
"type": "relation",
"relation": "manyToOne",
"target": "api::end-user.end-user",
"inversedBy": "wishlists"
},
"experience": {
"type": "relation",
"relation": "manyToOne",
"target": "api::experience.experience",
"inversedBy": "wishlists"
}
}
}
'use strict';
/**
* wishlist controller
*/
const { createCoreController } = require('@strapi/strapi').factories;
module.exports = createCoreController('api::wishlist.wishlist');
'use strict';
/**
* wishlist router
*/
const { createCoreRouter } = require('@strapi/strapi').factories;
module.exports = createCoreRouter('api::wishlist.wishlist');
'use strict';
/**
* wishlist service
*/
const { createCoreService } = require('@strapi/strapi').factories;
module.exports = createCoreService('api::wishlist.wishlist');
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!