Masterdata Guide

Overview

Masterdata is the necessary base data to run MOSIP services. The data resides in mosip_master database. This data needs to be customized for a country specific deployment.

Populating masterdata

Masterdata may be uploaded in the following manner:
  1. 1.
    One-time bulk upload:
    1. 1.
      Default masterdata (for sandbox installation): Using Helm chart. The default data uploaded during sandbox installation is available in mosip-data.
    2. 2.
      Country specific data: Using Python scripts.
  2. 2.
    Updates: Updates to tables may be done using the Admin Portal.

Creating country specific data

The tables that need to be modified for country specific data are listed below. Other tables in mosip_master DB are either system-filled or pre-filled and not to be modified.

Common guidelines

  • Copy Excel files from mosip-data to a folder.
  • For all tables listed below modify lang_code and add corresponding rows for your configured languages.
  • Modify the files for your deployment as per guide below.
  • Upload first time using scripts given here.
  • Subsequently, update data ONLY using Admin Portal.

Tables to be updated

Category
Table
Guide
Documents
doc_category
Categories of documents to be captured
doc_type
Specific documents related to a country
applicant_valid_document
Mapping of document category, type and applicant type
Location
loc_hierarchy_list
List of location hierarchy
location
List of locations stored in a hierarchical format
loc_holiday
Holidays specific to different locations. Used in registration centre creation.
Machine
machine_type
Example mobile, stationary. Refers to machine_spec.
machine_spec
Model, make of the registration machine
ID Schema
identity_schema
Refer to ID Schema customisation. Update the JSON in schema_json column of identity_schema.xlsx
dynamic_field
Dynamic dropdowns used during data capture
id_type
Only name and descr can be changed based on language
ui_spec
UI specification for registration and pre-registration UI screens. See UI spec guides
Registration client
permitted_local_config
List of changeable configurations by the operator
app_authentication_method
Only method_seq can be changed
app_detail
Only name and descr can be changed based on language
app_role_priority
Only priority can be changed
authentication_method
Only method_seq can be changed
reason_list
List of reasons for a reason category
reason_category
Only name and descr can be changed based on language
Registration center
reg_center_type
Type of center