Commit 3a3964c5 by Harish Patel

changes

1 parent f424b272
{
"kind": "collectionType",
"collectionName": "amenities",
"info": {
"singularName": "amenity",
"pluralName": "amenities",
"displayName": "Amenity"
},
"options": {
"draftAndPublish": true
},
"pluginOptions": {},
"attributes": {
"title": {
"type": "string"
},
"icon": {
"allowedTypes": [
"images"
],
"type": "media",
"multiple": false
}
}
}
'use strict';
/**
* amenity controller
*/
const { createCoreController } = require('@strapi/strapi').factories;
module.exports = createCoreController('api::amenity.amenity');
'use strict';
/**
* amenity router
*/
const { createCoreRouter } = require('@strapi/strapi').factories;
module.exports = createCoreRouter('api::amenity.amenity');
'use strict';
/**
* amenity service
*/
const { createCoreService } = require('@strapi/strapi').factories;
module.exports = createCoreService('api::amenity.amenity');
...@@ -103,15 +103,21 @@ ...@@ -103,15 +103,21 @@
"repeatable": true, "repeatable": true,
"component": "layout.project-image" "component": "layout.project-image"
}, },
"unitPlanImages": {
"type": "component",
"repeatable": true,
"component": "layout.project-image"
},
"masterPlanImages": { "masterPlanImages": {
"type": "component", "type": "component",
"repeatable": true, "repeatable": true,
"component": "layout.project-image" "component": "layout.project-image"
},
"township": {
"type": "relation",
"relation": "manyToOne",
"target": "api::township.township",
"inversedBy": "projects"
},
"amenities": {
"type": "relation",
"relation": "oneToMany",
"target": "api::amenity.amenity"
} }
} }
} }
{
"kind": "collectionType",
"collectionName": "townships",
"info": {
"singularName": "township",
"pluralName": "townships",
"displayName": "Township",
"description": ""
},
"options": {
"draftAndPublish": true
},
"pluginOptions": {},
"attributes": {
"location": {
"type": "relation",
"relation": "oneToOne",
"target": "api::location.location"
},
"title": {
"type": "string",
"required": true,
"unique": true
},
"address": {
"type": "text"
},
"latitude": {
"type": "float"
},
"longitude": {
"type": "float"
},
"description": {
"type": "richtext"
},
"bannerImages": {
"type": "component",
"repeatable": true,
"component": "layout.project-image"
},
"featuredImages": {
"type": "component",
"repeatable": true,
"component": "layout.project-image"
},
"townshipImages": {
"type": "component",
"repeatable": true,
"component": "layout.project-image"
},
"film": {
"type": "string"
},
"bedroomTitle": {
"type": "string"
},
"projects": {
"type": "relation",
"relation": "oneToMany",
"target": "api::project.project",
"mappedBy": "township"
},
"amenities": {
"type": "relation",
"relation": "oneToMany",
"target": "api::amenity.amenity"
}
}
}
'use strict';
/**
* township controller
*/
const { createCoreController } = require('@strapi/strapi').factories;
module.exports = createCoreController('api::township.township');
'use strict';
/**
* township router
*/
const { createCoreRouter } = require('@strapi/strapi').factories;
module.exports = createCoreRouter('api::township.township');
'use strict';
/**
* township service
*/
const { createCoreService } = require('@strapi/strapi').factories;
module.exports = createCoreService('api::township.township');
...@@ -2,7 +2,8 @@ ...@@ -2,7 +2,8 @@
"collectionName": "components_layout_project_configurations", "collectionName": "components_layout_project_configurations",
"info": { "info": {
"displayName": "Project Configuration", "displayName": "Project Configuration",
"icon": "bed" "icon": "bed",
"description": ""
}, },
"options": {}, "options": {},
"attributes": { "attributes": {
...@@ -30,6 +31,11 @@ ...@@ -30,6 +31,11 @@
}, },
"pricePerSaleableSqft": { "pricePerSaleableSqft": {
"type": "decimal" "type": "decimal"
},
"unitPlanImages": {
"type": "component",
"repeatable": true,
"component": "layout.project-image"
} }
} }
} }
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!