-- ====================================================================
-- ERR_LOG Table Definition
-- ====================================================================
-- Purpose: Error logging table for workflow and mapping errors
-- Source: MARS-770 install_package_MarsGeneralRelease_MARS770_tables.sql
-- ====================================================================

CREATE TABLE "CT_MRDS"."ERR_LOG" 
   ("ERR_LOG_KEY" NUMBER(*,0), 
	"A_WORKFLOW_HISTORY_KEY" NUMBER(38,0), 
	"ERR_MESSAGE_FK" NUMBER, 
	"ERR_SEVERITY_FK" NUMBER, 
	"ERR_WORKFLOW_RUN_ID" CHAR(17 BYTE) COLLATE "USING_NLS_COMP", 
	"ERR_WORKFLOW_NAME" CHAR(18 BYTE) COLLATE "USING_NLS_COMP", 
	"ERR_MAPPING_NAME" CHAR(74 BYTE) COLLATE "USING_NLS_COMP", 
	"ERR_LOCATION" CHAR(74 BYTE) COLLATE "USING_NLS_COMP", 
	"ERR_SOURCE" CHAR(22 BYTE) COLLATE "USING_NLS_COMP", 
	"ERR_KEY_BUSINESS" CHAR(6 BYTE) COLLATE "USING_NLS_COMP", 
	"ERR_KEY_BUSINESS_VALUE" CHAR(14 BYTE) COLLATE "USING_NLS_COMP", 
	"ERR_KEY_TECHNICAL" CHAR(22 BYTE) COLLATE "USING_NLS_COMP", 
	"ERR_KEY_TECHNICAL_VALUE" VARCHAR2(40 BYTE) COLLATE "USING_NLS_COMP", 
	"ERR_DESCRIPTION" CHAR(94 BYTE) COLLATE "USING_NLS_COMP", 
	"ERR_MESSAGE" VARCHAR2(255 BYTE) COLLATE "USING_NLS_COMP", 
	"INDEP_SUBPROCESS_FK" NUMBER(38,0)
);