Commit 39102147 by jay

data models;

1 parent 57bb633f
{
"kind": "collectionType",
"collectionName": "townships",
"info": {
"singularName": "township",
"pluralName": "townships",
"displayName": "Township",
"description": ""
},
"options": {
"draftAndPublish": true
},
"pluginOptions": {},
"attributes": {
"title": {
"type": "string",
"required": true,
"unique": true
},
"address": {
"type": "text"
},
"latitude": {
"type": "float"
},
"longitude": {
"type": "float"
},
"description": {
"type": "richtext"
},
"phoneBanner": {
"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"
},
"townshipContactEmail": {
"type": "string",
"required": true
},
"townshipContactNumber": {
"type": "string",
"required": true
},
"cpSubmitLeadEnabled": {
"type": "boolean",
"default": false
},
"cpGuidelines": {
"type": "media",
"multiple": false,
"required": false,
"allowedTypes": [
"images",
"files",
"videos",
"audios"
]
},
"brochure": {
"type": "media",
"multiple": false,
"required": false,
"allowedTypes": [
"images",
"files"
]
},
"keyDestinations": {
"displayName": "keyDestinations",
"type": "component",
"repeatable": true,
"component": "layout.key-destinations"
},
"contactNumber": {
"type": "string"
},
"facebook": {
"type": "text"
},
"twitter": {
"type": "text"
},
"instagram": {
"type": "text"
},
"linkedIn": {
"type": "text"
},
"youtube": {
"type": "text"
},
"serialNumber": {
"type": "integer",
"required": true
}
}
}
'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');
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!