Data for a new tenant provisioning can come from your main CRM (master instance) or from other particular selected instance or from the default Perfex CRM SQL files (expandable see below). Tenant seed settings can be managed from ‘SaaS > Settings > Tenant Seed (tab)’
Master CRM for Seeding #
When using master instance, general settings are copied by default with exclusion of some settings classified as secret during instance provision (i.e when creating a tenant CRM). Base on the default installation of Perfex, we do not copy over payment gateways ID’s, secrets or other sensitive information. We have expose an interface in ‘SaaS > Settings > Tenant Seed’ where you can further extend the list of sensitive information that should not be copied for tenant during instance provision.
These seeding option allowing checking numbers of other tables data (aside settings) to be copied over to the tenant. Important tables are selected by default.
If you come accross any sensitive information copied over to the tenant, while you are not sharing such information, kindly reachout to us through support@perfextosaas.com
Tenant Instance for Seeding #
This option allow you to configure a specific instance for provisioning other tenants.
When using a dedicated instance for seeding, in such scenario all setting are copied over to the new tenants from the seed instance and its important you configure the seed instance to contain only data that can be shared with other tenants as all data on the instance might be shared.
These seeding option also expose interface allowing checking numbers of other tables data to be copied over to the tenant. Important tables are selected by default.
Default SQL files #
Tenants will be seeded using the SQL files inside this folder : modules/saas/migrations/default_seeds/ . We include latest version of the Perfex CRM installation SQL file in this folder by default. Add your sql file(s) to the folder to extend seedings, only INSERT statements will however be considered for the seeding.
NOTE: Regardless of the seeding option choosen, the master table structure is used as the blueprint for the tenants.