Commit e4e832c8 by jaymehta

data modelling fixes

1 parent 882d2236
...@@ -30,6 +30,12 @@ ...@@ -30,6 +30,12 @@
], ],
"type": "media", "type": "media",
"multiple": false "multiple": false
},
"experience": {
"type": "relation",
"relation": "oneToOne",
"target": "api::experience.experience",
"mappedBy": "category"
} }
} }
} }
...@@ -18,24 +18,9 @@ ...@@ -18,24 +18,9 @@
"description": { "description": {
"type": "text" "type": "text"
}, },
"pricePerPerson": {
"type": "string"
},
"address": { "address": {
"type": "text" "type": "text"
}, },
"duration": {
"type": "string"
},
"minimumDuration": {
"type": "string"
},
"maximumDuration": {
"type": "string"
},
"ageLowerLimit": {
"type": "string"
},
"ageNotes": { "ageNotes": {
"type": "string" "type": "string"
}, },
...@@ -72,11 +57,6 @@ ...@@ -72,11 +57,6 @@
"target": "api::course-detail.course-detail", "target": "api::course-detail.course-detail",
"inversedBy": "experience" "inversedBy": "experience"
}, },
"masterMonths": {
"type": "relation",
"relation": "oneToMany",
"target": "api::master-month.master-month"
},
"masterPincode": { "masterPincode": {
"type": "relation", "type": "relation",
"relation": "oneToOne", "relation": "oneToOne",
...@@ -145,6 +125,35 @@ ...@@ -145,6 +125,35 @@
}, },
"contactPersonForBooking": { "contactPersonForBooking": {
"type": "string" "type": "string"
},
"pricePerPerson": {
"type": "float"
},
"duration": {
"type": "integer"
},
"minimumDuration": {
"type": "integer"
},
"maximumDuration": {
"type": "integer"
},
"ageLowerLimit": {
"type": "integer"
},
"category": {
"type": "relation",
"relation": "oneToOne",
"target": "api::categorie.categorie",
"inversedBy": "experience"
},
"approved": {
"type": "boolean",
"default": false
},
"rejectionReason": {
"type": "string",
"default": "Yet to approve"
} }
} }
} }
{
"kind": "collectionType",
"collectionName": "master_countries",
"info": {
"singularName": "master-country",
"pluralName": "master-countries",
"displayName": "Master-country",
"description": ""
},
"options": {
"draftAndPublish": false
},
"pluginOptions": {},
"attributes": {
"name": {
"type": "string"
}
}
}
'use strict';
/**
* master-country controller
*/
const { createCoreController } = require('@strapi/strapi').factories;
module.exports = createCoreController('api::master-country.master-country');
'use strict';
/**
* master-country router
*/
const { createCoreRouter } = require('@strapi/strapi').factories;
module.exports = createCoreRouter('api::master-country.master-country');
'use strict';
/**
* master-country service
*/
const { createCoreService } = require('@strapi/strapi').factories;
module.exports = createCoreService('api::master-country.master-country');
{
"kind": "collectionType",
"collectionName": "master_days",
"info": {
"singularName": "master-day",
"pluralName": "master-days",
"displayName": "Master-days",
"description": ""
},
"options": {
"draftAndPublish": false
},
"pluginOptions": {},
"attributes": {
"name": {
"type": "string"
}
}
}
'use strict';
/**
* master-day controller
*/
const { createCoreController } = require('@strapi/strapi').factories;
module.exports = createCoreController('api::master-day.master-day');
'use strict';
/**
* master-day router
*/
const { createCoreRouter } = require('@strapi/strapi').factories;
module.exports = createCoreRouter('api::master-day.master-day');
'use strict';
/**
* master-day service
*/
const { createCoreService } = require('@strapi/strapi').factories;
module.exports = createCoreService('api::master-day.master-day');
{
"kind": "collectionType",
"collectionName": "master_months",
"info": {
"singularName": "master-month",
"pluralName": "master-months",
"displayName": "Master-months",
"description": ""
},
"options": {
"draftAndPublish": false
},
"pluginOptions": {},
"attributes": {
"name": {
"type": "string"
}
}
}
'use strict';
/**
* master-month controller
*/
const { createCoreController } = require('@strapi/strapi').factories;
module.exports = createCoreController('api::master-month.master-month');
'use strict';
/**
* master-month router
*/
const { createCoreRouter } = require('@strapi/strapi').factories;
module.exports = createCoreRouter('api::master-month.master-month');
'use strict';
/**
* master-month service
*/
const { createCoreService } = require('@strapi/strapi').factories;
module.exports = createCoreService('api::master-month.master-month');
...@@ -14,11 +14,6 @@ ...@@ -14,11 +14,6 @@
"attributes": { "attributes": {
"name": { "name": {
"type": "string" "type": "string"
},
"masterCountry": {
"type": "relation",
"relation": "oneToOne",
"target": "api::master-country.master-country"
} }
} }
} }
{
"kind": "collectionType",
"collectionName": "time_slots",
"info": {
"singularName": "time-slot",
"pluralName": "time-slots",
"displayName": "Time-slots",
"description": ""
},
"options": {
"draftAndPublish": false
},
"pluginOptions": {},
"attributes": {
"start": {
"type": "time"
},
"end": {
"type": "time"
},
"masterDay": {
"type": "relation",
"relation": "oneToOne",
"target": "api::master-day.master-day"
}
}
}
'use strict';
/**
* time-slot controller
*/
const { createCoreController } = require('@strapi/strapi').factories;
module.exports = createCoreController('api::time-slot.time-slot');
'use strict';
/**
* time-slot router
*/
const { createCoreRouter } = require('@strapi/strapi').factories;
module.exports = createCoreRouter('api::time-slot.time-slot');
'use strict';
/**
* time-slot service
*/
const { createCoreService } = require('@strapi/strapi').factories;
module.exports = createCoreService('api::time-slot.time-slot');
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!