Skip to main content

CMD Modernization Data Model

In the CMD application data model, we have

  • 15 base tables for Customer
  • 6 base tables for Contact
  • 5 base tables for Facility
  • 21 Reference tables to maintain the Reference data.
  • We also have 11 XREF tables to be used during the approval process.

Table of Contents

1. Schema Details:

We have created two Schema

Sl. noTable NameDescription
1MDM_SMDSMDM_SMDS schema is used in all the customer core tables, contact core tables, customer facility core tables and reference data tables.
2MDM_SMDSMDMDM_SMDSMD schema is used to create all config tables, sequences etc for additional support. as mentioned in section #5 Contains all other tables which are used to support the other functionalities in API/UI/Data migration.

2. MDM_SMDS Tables

1. Customer Core tables:

We have created 15 customer base tables. All the customer core tables are created in the MDM_SMDS schema.

Customer base tables:

These base tables are the core customer information tables where the actual master data of the customer will be stored. The purpose of each table is detailed in the table below.

Sl. NoTable NameDescription
1ADDRESS_CODESUsed to stored the address codes FACT and SCV codes for Customer and concern address.
2CBU_HISTORY_DETAILSThis is used to main audit history of each and every update on CBU data. Data is stored here in JSON format.
3CUSTOMER_BRANDSThis table contains information about the customer brand details. Customer can be associated with multiple brands.
4CUSTOMER_BVD_INFORMATIONThis is used to store the information enriched from BVD source. This will be updated with active integration process as well as passive integration process.
5CUSTOMER_CBU_DETAILThis table contains details of the relationship between Customer and collection business units.
6CUSTOMER_EXTERNAL_IDENTIFIERSThis table contains the external application identifier details about the customer. Example: FCT, SVC, BE, BPMA etc..
7CUSTOMER_HISTORY_DETAILSThis is used to main audit history of each and every update on customer data. Data is stored here in JSON format.
8CUSTOMER_INFORMATIONThis table contains core information about customers along with the customer address. This table is also used to persist the concern details as well.
9CUSTOMER_RELATIONSHIPSIt describes the relationship between customers by using the attributes parent_customer_code and child_customer_code. It also persist the relationship between customer and concern.
10CUSTOMER_SEGMENT_DETAILDetails about the customer segment types and segment values.
11CUSTOMER_SIC_INFORMATIONThis is used to store the information enriched from BVD source related Standard Industry Codes. This will be updated with passive integration process.
12CUSTOMER_STATUS_REASONSThis table is used to persist the the customer suspended reasons. A customer can be suspended with multiple reasons, and all these reasons are stored in this table.
13CUSTOMER_TAX_REF_INFOThis table contains information about the tax number and alternate references about customers.
14CUSTOMER_WEB_BL_DETAILDetails about the customer webbill information.
15CUSTOMER_WF_PROCESS_DETAILSThis is used to maintain the customer information when the customer go for approval process. The customer updated or snapshot information will be stored in this table and once customer is approved the data will be updated into core tables. If its rejected, then the record will be removed from this table. This also will be stored in JSON format.

2. Contact Core tables:

We have created 6 contact core tables. All the contact core tables are created in MDM_SMDS schema.

Sl .NoTable NameDescription
1CONTACT_INFORMATIONThis table consists of information of the contact along with the email-address and mobile number.
2CONTACT_CUSTOMER_RELATIONSHIPThis table describes the relationship between the customer and the contact.
3CONTACT_CLASSIFICATIONThis table classifies the contact and includes different classification codes. Classification like Contact Types and Contact brands.
4CONTACT_EXTERNAL_IDENTIFIERSThis table contains the external application identifier details about the contact. Example: FCT, SVC, BPMA etc..
5CONTACT_DOC_TYPE_AND_COMM_PREFThis is used to store the contact communication preference and communication document type along with customer and brand information to which it belongs to. A contact can have multiple document type and communication type preferences.
6CONTACT_HISTORY_DETAILSThis is used to maintain audit history of each and every update on contact data. Data is stored here in JSON format.

3. Customer Facility Core tables:

Below are 5 core customer facility tables created to store the customer facility information are stored in MDM_SMDS schema.

Sl. NoTable NameDescription
1FACILITY_INFORMATIONUsed to store basic customer facility information.
2FACILITY_EXTERNAL_IDENTIFIERSUsed to store external identifiers of customer facility.
3FACILITY_ADDRESSCustomer Facility actual address along with lat and long and also address accuracy level.
4FACILITY_CUSTOMER_RELRelationship between Facility and Customer is stored here.
5FACILITY_HISTORY_DETAILSThis is used to main audit history of each and every update on contact data. Data is stored here in JSON format.

4. Reference tables:

We have created 25 reference tables. All the reference tables are created in MDM_SMDS schema. These reference tables will be used to maintain the predefined reference data in the application. Any update, new reference data will be directly updated/created in the respective tables if there are any.

Sl.NoTable NameDescription
1ref_alternate_codesUsed to to store the alternate codes along with the system names for the customers, contact and customer facility.
2ref_brandsThis table provides information about the brands CMD maintains. There are around 5 different brands and 19 M&As available currently.
3ref_bvd_tax_code_mapIt contains BVD country tax code mappings with the CMD country tax code mappings,
4ref_collection_business_unitsIt refers to the collection business units of each country and brands.
5ref_communication_pref_typesIt contains the details about the mode of communication preferred by different countries.
6ref_contact_class_typeContact class type which is Contact Type or Contact brands
7ref_contact_primary_salutationIt refers to the primary salutation of contact.
8ref_countryUsed to track all countries
9ref_customer_group_typeThis table refers to the customer group type (SCPI or SCPI_TAX_EXEMPTED)
10ref_customer_reference_typesIt contains reference details of the customers (REF_NUM or TAX_NUM)
11ref_customer_statusCustomer status (Active, Suspended, Inactive)
12ref_customer_status_rsnList of reasons used to suspend|inactive customer.
13ref_customer_typeCustomer type either ZEXC or ZICC
14ref_document_typeContact document type
15ref_international_cont_salutationIt refers to the salutation information of different countries.
16ref_international_dialing_prefixIt contains the dialing codes information of countries.
17ref_invoice_iso_languagesInvoice language codes for all countries
18ref_iso_languagesLanguage ISO codes
19ref_regionUsed to track all regions in the countries
20ref_relationship_typesAll relationship types between customer to customer, customer to contact, concern to customer, customer to CBU, customer to customer facility etc
21ref_segmentation_typesAll customer segment types
22ref_segmentation_value_typesAll customer segment values types
23ref_source_systemsUsed to track all source system names from which the data will be feed to MDM system
24ref_tax_number_codesAll customer tax types in CMD application.
25ref_tax_type_local_nameCMD tax type to local/standard tax type mapping is stored.

3. Additional Supporting tables in MDM_SMDSMD schema:

Below are the 63 tables created in MDM_SMDSMD schema.

Table NameUsecase Description
1adf_file_service_mappingThe table contains all the Azure Data Factory(ADF) related paths and filenames mapping for reference.
2bbu_error_historyThis table is used to track the error details of a record which got failed because of validations. This table tracks all failed records against a BBU job along with all error details.
3bbu_historyThis table is used to track each and every BBU job status. What is the template uploaded, how many records in the batch and how many are success and how many are failed and overall status of the job in JSON format.
4bbu_template_infoThis table is used to store all template-related information as reference which will help in validating the file or template structure. of The number records in this table is equal to number of BBU templates.
5bvd_sync_trackThis table contains details of the bvd IDs mapped to customer and the result of the bvd passive process.
6Temporary tablesThese are some temporary tables that don’t have any significance, but are present for intermediate use. They also have temp_ in them for distinguishing them. bvd_wapper_temp_response - its empty currentlytest_customer_history_details - for testing customer historytemp_seq_checktemp_india_pan_cleanup
7cmd_application_configUsed to maintain the configurations related to applications/services like cmd_rule_engine, cmd_rkts07_push, cmd_wtsc_listener
8cmd_common_validation_rulesUsed to maintain the common validation rules for fields like name, address fields etc across entities like customer, contact, facility
9cmd_generic_country_rulesUsed to maintain the validation rules specific to each country.
10concern_segment_syncWe automate the segments for isConcern and member concerns, this table is used to keep track of the sync between the segments sync between is concern and members and if any error occured.
11consumer_fclty_trafficHas facility retrieve information in JSON format. Used to send to consumers.
12consumer_sync_trackUsed to track the sync between the consumers and errors that occurred for those records across entities like Customer/Contact/Facility.
13cont_risk_profile_histUsed to track the history of contact inactivation and risk score associated with it.
14cont_risk_profile_ldg - is emptycont_risk_profile_stgUsed to keep details of all the codes like SCV, BPMA, BE CODE, CMD code associated with contacts and their risk score.
15cust_name_keywordsUsed to maintain the name key words for customer name.
16cust_stat_chng_req_trckrUsed to track the customer status change requests. It also contains the details about request sent and whether it was successful or failed with message.
17cust_type_keywordsUsed to maintain the name key words for customer name with respect to segment type.
18customer_status_reasons_bkpBackup of customer status reasons ex: Duplicate, Not in use etc
19damco_cmd_dup_cust_mapContains the mapping of Damco BE Codes, FACT, SCV codes with CMD Becode, FACT, SCV codes.
20dgo_damco_idl_be_codeDamco - BE Codes from Informatica Data Load(IDL) are kept here.
21email_validation_trackerUsed to store the informatica email validation results which is used to set the communication details for contact.
22entity_update_historyAll entities updates history is kept here in JSON format - ex - CUST/CONT/FACILITY etc.
23eu_vat_validn_histUsed to store the European tax vat validation results.
24facility_duplicate_trackerUsed to track the duplicates found during Facility create/updates.
25gems_cust_dtlsUsed to store the details of customer from GEMS source system.
26gen_name_extnStores the generic keywords like PVT, LTD, Logistic etc.
27generated_be_codeUsed to store the generated BE Codes in the system.
28generic_testSome test table related to generic country rules.
29geo_region_detailsRegion data from Geo API with country details are kept here for later use.
30pg_elk_sync_trckUsed to to track the sync of Customer/Concern/Contact/Facilities between the elastic search and PG tables, with any error message.
31phone_validation_trackerUsed to store the informatica phone number validation results which is used to set the communication details for customer and contact.
32producer_concern_trafficHas Concern retrieve information in JSON format. Used by producer.
33producer_contact_trafficHas Contact retrieve information in JSON format. Used by producer.
34producer_customer_trafficHas Customer retrieve information in JSON format. Used by producer.
35producer_fclty_trafficHas Facility retrieve information in JSON format. Used by producer.
36producer_sync_trackUsed to to track the sync of Customer/Concern/Contact/Facilities while publishing to EMP, with any error messages.
37ref_customer_status_rsn_bkpBackup of reference data of Customer status reasons
38scpi_country_rulesUsed to maintain the SCPI validation rules specific to each country.
39smds_generic_country_rulesUsed to maintain the Normal/Non-SCPI validation rules specific to each country.
40Stage tablesThese are the stage tables used when doing MNA IDLstg_contact_classification - linked contact brands of all contactstg_contact_customer_relationship - contact relationship with customers of all contactstg_contact_external_identifiers - webbill information of all contactstg_contact_information - webbill information of all contactstg_customer_brands - linked brand details of all customersstg_customer_cbu_detail - linked cbu information of all customersstg_customer_external_identifiers - linked external identifiers like SCV, MODS etc of all customersstg_customer_information - information of all customersstg_customer_relationships - relationships like MASTER_DUP, CONCERN etc of all customersstg_customer_segment_detail - linked segments of all customersstg_customer_tax_ref_info - tax information of all customersstg_customer_web_bl_detail - webbill information of all customers
41sync_code_trk_adfUsed to track the sync and publish of the Concern codes.
42tamr_customer_dataContains customer information details
43tax_validn_histUsed to store the tax validation results from external APIs , like for VIES, ABN, NZBN etc.
44user_access_configUsed by the CMD portal to manage the role based access control. It contains all the versions of configuration changehanges.
45Notification_TrackerUsed to track the notification message and details for applicable entities. Generally workflow notifications of customers.
46vndr_user_role_mapUsed to store the vendor portal related user’s APM ID roles/access levels.

Below is the proposed solution to redesign the producer tracker tables.

  • Create single table with primary key as row_id and index on row_id. This table will be used to track every publish event for every entity. The success and failure events will be tracked in the same table.
  • If data volume is huge to maintain for every entity, then we will separate it by entity.

EMP_Producer_Tracker

Row_id BIGSERIAL NOT NULL, Entity_Type VARCHAR(5) NOT NULL, Entity_Code VARCHAR(50) NOT NULL, Event_Type VARCHAR(50) NULL, processed VARCHAR(1) NOT NULL, Payload text, Create_Time TIMESTAMPTZ NOT NULL, Update_Time TIMESTAMPTZ NOT NULL, Error_Msg VARCHAR(1000)

4. E-R Diagram:

Download the full-clarity image from here.

5. Data Dictionary:

Customer Tables

1. Customer Information

DB ATTRIBUTE NAMEAPI ATTRIBUTE NAMEDESCRIPTION
CUSTOMER_GROUP_TYPEcustomerGroupTypeThis is a FCT Code will be used accros applications to identify the customers. It will be 10 character length, first two characters will identify the country code and next 8 digits are sequence number from database.
CUSTOMER_CMD_CODEN.AEach customer is assigned an unique customer code MANDATORY IN DB
CUSTOMER_ROLE_TYPEN.AStores whether the record is a Concern or a Customer MANDATORY IN DB
TRADING_NAMEtradingNameMANDATORYThe trading name is the name of customer by which it does business and is recognized.
CUSTOMER_STATUS_CDcustomer status.statusCodeMANDATORYIt is I|A
LEGAL_NAMElegalNameLegal Name is the enriched name coming from BvD
ACCOUNT_GROUP_TYPEcustomerTypeIndicates whether the customer is internal customer or external. ZEXC for external and ZICC for internal
CUSTOMER_WEBSITEurlURL of the customer
INVOICE_LNG_CDinvoiceISOLanguageCodePreferenceinvoicing language code of the customer - if not choose then defaults to the country specific default iso language.
EMAIL_ADDRESSN.A
BROKisBrokerageIt is Y|N flag
FOFMCisForwardersCompensationIt is Y|N
IS_SOLE_PROPRIETORisSoleProprietorif the customer is sole proprietor
VIP_NON_ROLLvipNonRollIf the customer is a VIP and related to Rolling protection segment.
STREET_NOcustomerAddress.streetNumberStreet Number
ADDRESS_LINE1streetNameAddress line1
POBOXpoBoxNumberPo Box
ADDRESS_LINE2apartmentFloorAddress line2 - Apartment, Suite, Floor, etc.
ADDRESS_LINE3subArea / districtNameAddress line3 - City sub-area/City District
CITYcityNameMANDATORYCity name
ZIP_CODEpostalCodePincode
STATE_CODEregionCodeTwo character code for regions
STATE_NAMEregionNameState name
COUNTRY_CODEisoCountryCodeTwo character code for each country
COUNTRY_NAMEcountryNameCountry name
LATITUDElatitudeLatitude Information of the customer address - populates from Azure Maps
LONGITUDElongitudeLongitude Information of the customer address - populates from Azure Maps
PHONE_TYPEcommunicationNumberTypeType of communication by which we can contact customer (TEL or MOB)
ISD_DIALING_CODEinternationalDialingCodeCountry dialing code
ISD_COUNTRY_CODEisd_country_codeCountry code for phone number
EXTENSION_NUMBERextensionNumberExtension of phone number
PHONE_NUMnumberCustomer phone number
IS_PENDINGisWorkflowPendingIndicates whether the party is pending (Y|N) from business point of view MANDATORY IN DB
IS_DELETEDN.AIndicates whether the party is deleted(Y|N) from business point of view MANDATORY IN DB

2. Customer Tax Ref Information

DB ATTRIBUTE NAMEAPI ATTRIBUTE NAMEDESCRIPTION
CUSTOMER_CMD_CODEMANDATORYCustomer code to which the reference is linked MANDATORY IN DB
ROW_IDN.AIts the primary Key MANDATORY IN DB
REF_CNTRY_CDisoCountryCodeThe country code to which the tax/reference is associated.
REF_TYPEMANDATORYIs it a reference or a tax indicated by REF_NUM or TAX_NUM
REF_TYPE_CDidentifierCodeIts the reference type code used to identify the type of tax or reference.
REFERENCE_VALUEMANDATORY identiferValueIts the value of the tax or reference.
IS_DELETEDisDeletedFlagIndicates whether the party is deleted (Y|N) from business point of viewMANDATORY IN DB
IS_PENDINGN.AIndicates whether the party is pending(Y|N) from business point of viewMANDATORY IN DB

3. Customer Relationships

DB ATTRIBUTE NAMEAPI ATTRIBUTE NAMEDESCRIPTION
ROW_ID
REL_TYPE_CODEHierarchy relationship type code value defined in HM configuration in HUB console as shown in screenshot.
PARENT_CUSTOMER_CODE
CHILD_CUSTOMER_CODE
VALID_FROM_DATEFrom this date the relationship between parent and child is valid
VALID_THRU_DATETill this date the relationship between parent and child is valid
IS_DELETEDIndicates whether the party is deleted (Y|N) from business point of view
IS_PENDINGIndicates whether the party is pending(Y|N) from business point of view

4. Customer CBU Details

DB ATTRIBUTE NAMEAPI ATTRIBUTE NAMEDESCRIPTION
CUSTOMER_CMD_CODE
ROW_ID
BRAND_CODE
CBU_ID
CBU_TYPE
VALID_FROM_DATEFrom this date the relationship between parent and child is valid
VALID_THRU_DATETill this date the relationship between parent and child is valid
IS_DELETEDIndicates whether the party is deleted (Y|N) from business point of view
IS_PENDINGIndicates whether the party is pending(Y|N) from business point of view

5. CUSTOMER_SEGMENT_DETAIL

DB ATTRIBUTE NAMEAPI ATTRIBUTE NAMEDESCRIPTION
CUSTOMER_CMD_CODE
ROW_ID
BRAND_CODE
SEGMENT_TYPE_CODE
SEGMENT_VALUE_CODE
SEGMENT_VALUE_NAME
SEGMENT_VALUE_DESC
IS_DELETEDIndicates whether the party is deleted (Y|N) from business point of view
IS_PENDINGIndicates whether the party is pending(Y|N) from business point of view

6. CUSTOMER_WEB_BL_DETAIL

DB ATTRIBUTE NAMEAPI ATTRIBUTE NAMEDESCRIPTION
CUSTOMER_CMD_CODE
ROW_IDCustomer Row ID
BRAND_CODECustomer Brand Code
NEGOTIABLE_BLFlag indicating whether this is Negotiable customer or not based Brand
NON_NEGOTIABLE_WAYBILLFlag indicating whether this is Non-Negotiable customer or not based Brand
IS_DELETEDIndicates whether the party is deleted (Y|N) from business point of view
IS_PENDINGIndicates whether the party is pending(Y|N) from business point of view

7. CUSTOMER_EXTERNAL_IDENTIFIERS

DB ATTRIBUTE NAMEAPI ATTRIBUTE NAMEDESCRIPTION
CUSTOMER_CMD_CODE
ROW_ID
EXTERNAL_SOURCE_SYSTEM
EXTERNAL_SYSTEM_IDENTIFIER
IS_DELETEDIndicates whether the party is deleted (Y|N) from business point of view
IS_PENDINGIndicates whether the party is pending(Y|N) from business point of view

8. CUSTOMER_STATUS_REASONS

DB ATTRIBUTE NAMEAPI ATTRIBUTE NAMEDESCRIPTION
CUSTOMER_CMD_CODE
ROW_ID
CUSTOMER_STATUS_CDP,I,A sample values
REASON_CDReason for suspending the customer
REASON_NAME
REASON_DESC
IS_DELETEDIndicates whether the party is deleted (Y|N) from business point of view
IS_PENDINGIndicates whether the party is pending(Y|N) from business point of view

9. CUSTOMER_BVD_INFORMATION

DB ATTRIBUTE NAMEAPI ATTRIBUTE NAMEDESCRIPTION
BVD_ID
CUSTOMER_CMD_CODE
BVD_CUSTOMER_STATUS
CUSTOMER_LEGAL_NAME
GUO_BVD_ID
GUO_BVD_NAME
GUO_BVD_STATUS
HQ_BVD_ID
HQ_BVD_NAME
HQ_BVD_STATUS
BVD_MAJOR_SECTOR
MARKET_CAP
OPERATING_REVENUE_TURN_OVER
DATE_OF_ACCOUNT
PROFIT_MARGIN_PERCENT
CREDIT_RATING
RECOMMENDED_CREDIT_LIMIT
IS_DELETEDIndicates whether the party is deleted (Y|N) from business point of view
IS_PENDINGIndicates whether the party is pending(Y|N) from business point of view

10. CUSTOMER_SIC_INFORMATION

DB ATTRIBUTE NAMEAPI ATTRIBUTE NAMEDESCRIPTION
BVD_ID
CUSTOMER_CMD_CODE
BVD_SECTOR
CORE_SIC_CODE
CORE_SIC_DESC
PRIM_SIC_CODE
PRIM_SIC_DESC
SEC_SIC_CODE
SEC_SIC_DESC
IS_DELETEDIndicates whether the party is deleted (Y|N) from business point of view
IS_PENDINGIndicates whether the party is pending(Y|N) from business point of view

Contact Tables

11. Contact Information

DB ATTRIBUTE NAMEAPI ATTRIBUTE NAMEDESCRIPTION
CONTACT_CMD_CODE
CONTACT_STATUS
SALUTATION_LOCAL_LANGUAGEContact salutation local language
SALUTATION_STANDARDContact salutation standard
FIRST_NAME_LOCAL_LANGUAGEContact first name
FIRST_NAME_STANDARDContact first name standard
LAST_NAME_LOCAL_LANGUAGEContact Last name
LAST_NAME_STANDARDContact last name standard
DEPARTMENTDepartment of contact. This indicates that the contact belongs to perticular depatment in their home orgnaization. It will help us to identify right contact for right communication.
JOB_TITLEJob title of contact
TELEPHONE_ISD_COUNTRY_CODEInternational dialing code of Contact Phone number
TELEPHONE_DIALING_CODE
TELEPHONE_NUMBERContact Telephone Number
EXTENSION_NUMBERPhone Extension
MOBILE_ISD_COUNTRY_CODEInternational dialing code of Contact Mobile number
MOBILE_DIALING_CODE
MOBILE_NUMBERContact Mobile Number
MOBILE_ISD_COUNTRY_CODEInternational dialing code of Contact Fax number
MOBILE_DIALING_CODE
FAX_NUMBERContact Fax Number
PRIMARY_EMAIL_ADDRESSPrimary email. This indicates as primary contact.
SECONDARY_EMAIL_ADDRESSSecondary email of the contact which is optional
LANGUAGE_PREFERENCEDefault is EN. This indicate a language by which we communicate to contact.
TEAM_CONTACT_INDICATOR
IS_DELETEDIndicates whether the party is deleted (Y|N) from business point of view
IS_PENDINGIndicates whether the party is pending(Y|N) from business point of view

12. Contact customer relationship

DB ATTRIBUTE NAMEAPI ATTRIBUTE NAMEDESCRIPTION
ROW_IDContact record rowid to categorize as particular type.
REL_TYPE_CODEHierarchy relationship type code value defined in HM configuration in HUB console as shown in screenshot.
CUSTOMER_CMD_CODE
CONTACT_CMD_CODE
IS_MASTER_CONTACT
VALID_FROM_DATEFrom this date the relationship between parent and child is valid
VALID_THRU_DATETill this date the relationship between parent and child is valid
IS_DELETEDIndicates whether the party is deleted (Y|N) from business point of view
IS_PENDINGIndicates whether the party is pending(Y|N) from business point of view

13. Contact classification

DB ATTRIBUTE NAMEAPI ATTRIBUTE NAMEDESCRIPTION
ROW_IDContact record rowid to categorize as particular type.
CONTACT_CMD_CODE
CLASSIFICATION_TYPE
CLASSIFICATION_CODE
IS_DELETEDIndicates whether the party is deleted (Y|N) from business point of view
IS_PENDINGIndicates whether the party is pending(Y|N) from business point of view

14. Contact external identifiers

DB ATTRIBUTE NAMEAPI ATTRIBUTE NAMEDESCRIPTION
CONTACT_CMD_CODE
ROW_IDContact record rowid to categorize as particular type.
EXTERNAL_SOURCE_SYSTEM
EXTERNAL_SYSTEM_IDENTIFIER
IS_DELETEDIndicates whether the party is deleted (Y|N) from business point of view
IS_PENDINGIndicates whether the party is pending(Y|N) from business point of view

15. Contact communication preference document type

DB ATTRIBUTE NAMEAPI ATTRIBUTE NAMEDESCRIPTION
CUSTOMER_CMD_CODE
CONTACT_CMD_CODE
BRAND_CODE
DOCUMENT_TYPE
COMMUNICATION_PREF_TYPE
OTH_COMM_DTL
COMM_PREF_DOC_TYP_STAT

6. DDL scripts:

In DDL scripts we have written queries for creating customer core tables, contact core tables ,reference tables and denormalized tables along with different set of constrains on each table like primary key, foreign key etc.. It also contains drop query for all the created tables. For each reference tables insert scripts are included and also select queries are represented for each table.

Please find below git link for all DDL scripts

https://github.com/Maersk-Global/smds-cmd-database-artifacts

7. Sequences:

We have created 243 sequences in the below document. All the sequences are created in MDM_SMDSMD schema. In each sequence we have mentioned the attributes increment, min value, max value and start value. Each sequence name ends with the country code.

Please find below git link for sequences scripts

https://github.com/Maersk-Global/smds-cmd-database-artifacts

Was this page helpful?