--------------------------------------------------------
--  DDL for Table W_ODS_TMS_RULES
--------------------------------------------------------

  CREATE TABLE "CT_ET_TEMPLATES"."W_ODS_TMS_RULES" 
   (	"A_KEY" NUMBER(38,0), 
	"A_WORKFLOW_HISTORY_KEY" NUMBER(38,0), 
	"SDM_OBJECT_ID" NUMBER(12,0), 
	"SDM_KEY_ID" NUMBER(12,0), 
	"SDM_CREATE_DATE" DATE, 
	"SDM_ACCESS_LEVEL" NUMBER(12,0), 
	"SDM_ACTIVE" NUMBER(12,0), 
	"ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"NUMBER_" NUMBER(12,0), 
	"PRIORITY" NUMBER(12,0), 
	"PORTFOLIO_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"INSTRUMENT_PATH_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"STATUS" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"NOT_STATUS" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CF_LEG_PATH_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CF_FLAGS" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CF_NOT_FLAGS" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"FLAGS" NUMBER(12,0), 
	"NAME" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CLIENT_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CLIENT_MAIN_GROUP_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CLIENT_GROUP_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"USER_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CURRENCY_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CURRENCY_2_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"INSTRUMENT_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"SECONDARY_INSTRUMENT_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"PACKAGE_MAIN_TYPE_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"PACKAGE_TYPE_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"ISSUER_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"ISSUER_MAIN_GROUP_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"ISSUER_GROUP_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CP_CLIENT_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CP_CLIENT_MAIN_GROUP_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CP_CLIENT_GROUP_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CP_PORTFOLIO_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BROKER_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH0_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH1_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH2_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH3_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH4_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"PARAM_0" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"PARAM_1" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"PARAM_2" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"PARAM_3" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"PARAM_4" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"PARAM_5" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"PARAM_6" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"PARAM_7" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"PARAM_8" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"PARAM_9" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"PARAM_10" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"PARAM_11" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"PARAM_12" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"PARAM_13" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"PARAM_14" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"PARAM_15" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"PARAM_16" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"PARAM_17" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"PARAM_18" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"PARAM_19" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CONTEXTS" NUMBER(12,0), 
	"NOT_CONTEXTS" NUMBER(12,0), 
	"TRANSACTION_FLAGS" NUMBER(12,0), 
	"TRANSACTION_NOT_FLAGS" NUMBER(12,0), 
	"SIGN_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"TYPE_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"KIND_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"STATE_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CF_STATUS" NUMBER(12,0), 
	"CF_NOT_STATUS" NUMBER(12,0), 
	"CF_CURRENCY_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CF_PAYMENT_CURRENCY_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CF_SIGN" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CF_TYPE_ID" NUMBER(12,0), 
	"CF_SUBTYPE_ID" NUMBER(12,0), 
	"CF_CATEGORY_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CF_SUBCATEGORY_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CF_LEG_GROUP" NUMBER(12,0), 
	"CF_LEG_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CF_BRANCH0_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CF_BRANCH1_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CF_BRANCH2_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CF_BRANCH3_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CF_BRANCH4_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CF_FLAGS_2" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CF_NOT_FLAGS_2" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CF_KINDS" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CF_NOT_KINDS" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH10_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH11_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH12_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH13_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH14_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH15_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH16_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH17_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH18_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH19_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH20_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH21_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH22_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH23_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH24_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH25_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH26_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH27_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH28_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH29_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH30_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH31_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH32_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH33_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH34_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH35_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH36_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH37_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH38_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH39_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH5_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH6_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH7_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH8_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH9_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CF_BRANCH10_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CF_BRANCH11_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CF_BRANCH12_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CF_BRANCH13_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CF_BRANCH14_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CF_BRANCH15_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CF_BRANCH16_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CF_BRANCH17_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CF_BRANCH18_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CF_BRANCH19_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CF_BRANCH20_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CF_BRANCH21_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CF_BRANCH22_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CF_BRANCH23_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CF_BRANCH24_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CF_BRANCH25_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CF_BRANCH26_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CF_BRANCH27_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CF_BRANCH28_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CF_BRANCH29_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CF_BRANCH30_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CF_BRANCH31_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CF_BRANCH32_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CF_BRANCH33_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CF_BRANCH34_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CF_BRANCH35_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CF_BRANCH36_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CF_BRANCH37_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CF_BRANCH38_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CF_BRANCH39_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CF_BRANCH5_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CF_BRANCH6_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CF_BRANCH7_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CF_BRANCH8_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CF_BRANCH9_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CLIENT_UNIT_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CP_CLIENT_UNIT_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"ISSUER_UNIT_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CF_TYPE_NAME" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP"
   )  DEFAULT COLLATION "USING_NLS_COMP" SEGMENT CREATION DEFERRED 
  PCTFREE 10 PCTUSED 40 INITRANS 10 MAXTRANS 255 
 COLUMN STORE COMPRESS FOR QUERY HIGH ROW LEVEL LOCKING LOGGING
  TABLESPACE "DATA" ;
