Commit 58157aa2 by jay

Added referral entity

1 parent e0fd10ad
{
"kind": "collectionType",
"collectionName": "referrals",
"info": {
"singularName": "referral",
"pluralName": "referrals",
"displayName": "Referral",
"description": ""
},
"options": {
"draftAndPublish": true
},
"pluginOptions": {
"i18n": {
"localized": true
}
},
"attributes": {
"fullName": {
"type": "string",
"required": true,
"pluginOptions": {
"i18n": {
"localized": true
}
}
},
"township": {
"type": "string",
"pluginOptions": {
"i18n": {
"localized": true
}
}
},
"mobileNumber": {
"type": "string",
"pluginOptions": {
"i18n": {
"localized": true
}
}
},
"building": {
"type": "string",
"pluginOptions": {
"i18n": {
"localized": true
}
}
},
"email": {
"type": "email",
"pluginOptions": {
"i18n": {
"localized": true
}
}
},
"wing": {
"type": "string",
"pluginOptions": {
"i18n": {
"localized": true
}
}
},
"flatNumber": {
"type": "string",
"pluginOptions": {
"i18n": {
"localized": true
}
}
},
"ownershipType": {
"type": "string",
"pluginOptions": {
"i18n": {
"localized": true
}
}
},
"purchasedYear": {
"type": "string",
"pluginOptions": {
"i18n": {
"localized": true
}
}
},
"purchasedSource": {
"type": "string",
"pluginOptions": {
"i18n": {
"localized": true
}
}
},
"referralName": {
"type": "string",
"pluginOptions": {
"i18n": {
"localized": true
}
}
},
"referralPhoneNo": {
"type": "string",
"pluginOptions": {
"i18n": {
"localized": true
}
}
},
"referralEmail": {
"type": "email",
"pluginOptions": {
"i18n": {
"localized": true
}
}
},
"projectReferredTo": {
"type": "string",
"pluginOptions": {
"i18n": {
"localized": true
}
}
}
}
}
'use strict';
/**
* referral controller
*/
const { createCoreController } = require('@strapi/strapi').factories;
module.exports = createCoreController('api::referral.referral');
'use strict';
/**
* referral router
*/
const { createCoreRouter } = require('@strapi/strapi').factories;
module.exports = createCoreRouter('api::referral.referral');
'use strict';
/**
* referral service
*/
const { createCoreService } = require('@strapi/strapi').factories;
module.exports = createCoreService('api::referral.referral');
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!