Genpact Cora Knowledge Center

Support

Tables Data Model Configuration

Overview

The tables-data-model.yaml file defines the entities that are used in the Enrichment and Eyeball combo box related fields (the multi column combo box which refers to the master data lookup).

These entities are of three types:

  • Tables
  • Views
  • Stored Procedures (SP)

You should map the entity, in the master data DB, to the system, as explained below.

Template

kind: document 
metadata: 
  name: extraction/v1/documents/tables-data-model 
spec: 
  tables: 
    - name: VendorsByNumber 
      schemaName: mdm 
      tableName: tbl_vendor
			
      fields: 
        - name: VendorName 
          dataSourceName: vendor_name 
          dataType: String
					
        - name: VendorNumber 
          dataSourceName: vendor_number 
          dataType: String 

        - name: VendorType 
          dataSourceName: vendor_type 
          dataType: String 

  storedProcedures: 
    - name: GetOpCoFromAddress 
      commandText: dbo.USP_GetOpCO_From_Address 
      parameters: 
        - name: BillingAddress1 
          dbType: String 

        - name: ShippingAddress2 
          dbType: String 

        - name: SoldToAddress3 
          dbType: String 

        - name: CustomerAddress4 
          dbType: String                               

      fields: 
        - name: opco_code 
          dataSourceName: opco_code 
          dataType: String 
Parameter Description
Name The name of the entity (table, views, or stored procedure).
schemaName The name of the schema.
tableNameThe database tables, which needs to be mapped to the system. 
field nameFields in the tables. 
dataSourceNameSource name of the field data.
dataTypeData type of the field.
Stored procedureStored procedures in the database.
ParametersParameters in the stored procedure.

For example, in the above template, VendorsByNumber is a table with VendorNameVendorNumber, and VendorType as fields.