--------------------------------------------------------
--  DDL for Table TMS_SUBLIMIT
--------------------------------------------------------

  CREATE TABLE "CT_ET_TEMPLATES"."TMS_SUBLIMIT" 
   (	"A_KEY" NUMBER(38,0), 
	"A_WORKFLOW_HISTORY_KEY" NUMBER(38,0), 
	"ECBTS" DATE, 
	"STAMP" NUMBER(23,0), 
	"ECBOPERATION" CHAR(6 CHAR) COLLATE "USING_NLS_COMP", 
	"ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"LIMIT_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"LIMIT_CURRENCY_ID" VARCHAR2(4 CHAR) COLLATE "USING_NLS_COMP", 
	"TEMPL_ID" VARCHAR2(30 CHAR) COLLATE "USING_NLS_COMP", 
	"ACTIVE_FROM" DATE, 
	"ACTIVE_TO" DATE, 
	"GAP_SET_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"MATURITY_GAP_FROM_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"MATURITY_GAP_TO_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"RISK_GAP_FROM_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"RISK_GAP_TO_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"DELIVERY_GAP_FROM_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"DELIVERY_GAP_TO_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"INSTRUMENT_ID" VARCHAR2(30 CHAR) COLLATE "USING_NLS_COMP", 
	"UNDERLYING_ID" VARCHAR2(30 CHAR) COLLATE "USING_NLS_COMP", 
	"DELIVERY_ID" VARCHAR2(30 CHAR) COLLATE "USING_NLS_COMP", 
	"LEG_ID" VARCHAR2(30 CHAR) COLLATE "USING_NLS_COMP", 
	"CURRENCY_ID" VARCHAR2(4 CHAR) COLLATE "USING_NLS_COMP", 
	"CURRENCY_CLASS_ID" VARCHAR2(20 CHAR) COLLATE "USING_NLS_COMP", 
	"PORTFOLIO_OWNER_ID" VARCHAR2(20 CHAR) COLLATE "USING_NLS_COMP", 
	"PORTFOLIO_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"PACKAGE_TYPE_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"CLIENT_ID" VARCHAR2(20 CHAR) COLLATE "USING_NLS_COMP", 
	"BANK_ID" VARCHAR2(20 CHAR) COLLATE "USING_NLS_COMP", 
	"ACCOUNT_ID" VARCHAR2(35 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH0_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH1_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH2_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH3_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH4_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH5_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH6_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH7_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH8_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH9_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH10_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH11_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH12_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH13_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH14_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH15_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH16_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH17_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH18_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH19_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"MINIMUM_EXPRESSION" VARCHAR2(1024 CHAR) COLLATE "USING_NLS_COMP", 
	"MAXIMUM_EXPRESSION" VARCHAR2(1024 CHAR) COLLATE "USING_NLS_COMP", 
	"RATING_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"PARENT_ID" VARCHAR2(20 CHAR) COLLATE "USING_NLS_COMP", 
	"CLIENT_GROUP_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"CLIENT_MAIN_GROUP_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"RISK_COUNTRY_ID" VARCHAR2(2 CHAR) COLLATE "USING_NLS_COMP", 
	"GUARANTEE_LEVEL" NUMBER(10,0), 
	"GUARANTEE_PARAM_0" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"GUARANTEE_PARAM_1" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"GUARANTEE_PARAM_2" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"GUARANTEE_PARAM_3" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"GUARANTEE_PARAM_4" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"GUARANTEE_PARAM_5" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"GUARANTEE_PARAM_6" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"GUARANTEE_PARAM_7" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"GUARANTEE_PARAM_8" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"GUARANTEE_PARAM_9" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"GUARANTEE_TYPE_ID" VARCHAR2(20 CHAR) COLLATE "USING_NLS_COMP", 
	"INSTRUMENT_PATH_ID" NUMBER(10,0), 
	"MAX_RATING_CODE_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"MIN_RATING_CODE_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"UMI_MAX_RATING_CODE_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"UMI_MIN_RATING_CODE_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"UMI_RATING_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"FLAGS" NUMBER(10,0), 
	"AFFECT_GAP_FROM_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"AFFECT_GAP_TO_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH20_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH21_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH22_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH23_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH24_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH25_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH26_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH27_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH28_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH29_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH30_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH31_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH32_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH33_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH34_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH35_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH36_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH37_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH38_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH39_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"PACKAGE_MAIN_TYPE_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"UNDER_MATURITY_GAP_FROM_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"UNDER_MATURITY_GAP_TO_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"ADJUSTED_RISK_GAP_FROM_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"ADJUSTED_RISK_GAP_TO_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"LEG_GROUP" NUMBER(10,0), 
	"LEG_PATH_ID" NUMBER(10,0), 
	"POSITION_TYPE" NUMBER(10,0)
   )  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" ;
