The Schema Constructor module lets you create custom schemas for storing your regulated data or re-use the previously saved custom schema.
On the Recommendations page, locate the Schema Constructor module and click Continue.
The page for building a schema opens, as follows:
Here on the page, you can create a new schema from scratch or import the already existing schema.
Creating a schema from scratch
You can create a custom schema from scratch when you do not have an already established schema and you have some regulated data that you plan to store in InCountry Platform.
Click New Field. A new empty line with the field settings appears.
Proceed to filling out the field configuration, as follows:
Index - move the toggle right to enable the data indexing for the field.
Field Name - enter the field name how it appears in your data model.
Data Group/Type - select the data group or type if the module identifies it incorrectly. By default, the Schema Constructor module detects the data type automatically based on pre-defined patterns.
Encryption - select the appropriate encryption method for the field if you want to change the automatically applied encryption method. By default, the Schema Constructor module applies the optimal encryption method based on the data type and pre-defined patterns.
When complete, click the Save icon. The field is saved in the data schema.
To edit the field configuration:
On the list with fields, locate the field which configuration you want to modify.
Click the Edit icon.
Make the appropriate modifications in the field configuration.
When complete, click the Save icon.
To delete the field configuration:
On the list with fields, locate the field which configuration you want to delete.
Click the Delete icon.
The field configuration is removed from your data schema.
Importing the existing data schema
Click Import Schema.
Select the JSON file with the data schema. The module identifies the individual fields and applies the optimal configuration according to the pre-defined patterns.
You can edit individual configuration for each field if the applied configuration is not optimal from your point of view.
For the details on editing the field configuration, see ...
Revalidating the fields
You may need to re-validate configuration of fields after making modifications in them.
- Below the list of fields, locate and click Revalidate Fields.
The Schema Constructor module will process the fields and apply the optimal configuration according to the pre-defined patterns.
If the module identifies some inconsistencies in the field configurations, it will indicate the problem with the triangle and corresponding message appearing on hover.
Setting up the country for data residency
Once you have configured the data schema, you can proceed to setup of the data origin country and the country which is preferable for storing the regulated data.
In the Data origin country box, select the country of data origin or choose the field from the data schema that contains the country information.
In the Preferred country box, select one or multiple countries in which you prefer to store the regulated data from the origin country. You can rank the preferred countries by re-ordering them on the list.
When complete, click Next.
Loading regulated data
Once you have set up the preferred countries for storing the regulated data, you can proceed to loading this data on the InCountry Portal.
Click Load data from file and select the JSON file with data. The system loads the file and regulated data from it according to the configured data schema.
If needed, you can review or filter the loaded data. Click the Filter icon located in the top right part of the screen above the table with data. In the Filter form, select the field, the operator and the value against which you want to filter your loaded data. When complete, click Apply Filter. If you need to reset the filter, click Clear.
Once you have reviewed the loaded data, click Recommend Countries.
You transition to the interface identical to the Data Location Map module.
Here you can re-upload your regulated data, change the preferred countries and set up custom data residency rules. For the details on management of data in this module, see Data Location Map.