--------------------------------------------------------
--  DDL for Table TMS_LIMIT_LOG
--------------------------------------------------------

  CREATE TABLE "CT_ET_TEMPLATES"."TMS_LIMIT_LOG" 
   (	"A_KEY" NUMBER(38,0), 
	"A_WORKFLOW_HISTORY_KEY" NUMBER(38,0), 
	"ECBOPERATION" CHAR(6 CHAR) COLLATE "USING_NLS_COMP", 
	"ECBTS" DATE, 
	"ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"DATE_" DATE, 
	"TIME" DATE, 
	"SUBLIMIT_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"AMOUNT" NUMBER(28,10), 
	"OLD_AMOUNT" NUMBER(28,10), 
	"VIOLATION_TYPE" NUMBER(28,0), 
	"VIOLATION_P" NUMBER(28,10), 
	"MINIMUM_AMOUNT" NUMBER(28,10), 
	"MAXIMUM_AMOUNT" NUMBER(28,10), 
	"ITEM_ID" NUMBER(28,0), 
	"NUMBER_" NUMBER(28,0), 
	"PORTFOLIO_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"PACKAGE_TYPE_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"PACKAGE_ID" VARCHAR2(200 CHAR) COLLATE "USING_NLS_COMP", 
	"MARKET_ID" VARCHAR2(15 CHAR) COLLATE "USING_NLS_COMP", 
	"INSTRUMENT_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", 
	"CP_CLIENT_ID" VARCHAR2(20 CHAR) COLLATE "USING_NLS_COMP", 
	"CREDIT_CLIENT_ID" VARCHAR2(20 CHAR) COLLATE "USING_NLS_COMP", 
	"ISSUER_ID" VARCHAR2(20 CHAR) COLLATE "USING_NLS_COMP", 
	"UNDERLYING_ISSUER_ID" VARCHAR2(20 CHAR) COLLATE "USING_NLS_COMP", 
	"LEG_ID" VARCHAR2(30 CHAR) COLLATE "USING_NLS_COMP", 
	"PAYMENT_DATE" DATE, 
	"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", 
	"CAUSING_NUMBER" NUMBER(28,0), 
	"SERVER_ID" VARCHAR2(255 CHAR) COLLATE "USING_NLS_COMP", 
	"DELIVERY_GAP_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"MATURITY_GAP_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"RISK_GAP_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"INSTRUMENT_PATH" VARCHAR2(999 CHAR) COLLATE "USING_NLS_COMP", 
	"AFFECT_DATE" DATE, 
	"AFFECT_GAP_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", 
	"CLIENT_GROUP_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"CLIENT_ID" VARCHAR2(20 CHAR) COLLATE "USING_NLS_COMP", 
	"CLIENT_MAIN_GROUP_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"CLIENT_RATING_CODE_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"CLIENT_RATING_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"DELIVERY_DATE" DATE, 
	"GUARANTEE_LEVEL" VARCHAR2(200 CHAR) COLLATE "USING_NLS_COMP", 
	"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(50 CHAR) COLLATE "USING_NLS_COMP", 
	"LIMIT_CURRENCY_ID" VARCHAR2(4 CHAR) COLLATE "USING_NLS_COMP", 
	"LOG_ID" NUMBER(28,0), 
	"OWNER_ID" VARCHAR2(20 CHAR) COLLATE "USING_NLS_COMP", 
	"PACKAGE_MAIN_TYPE_ID" VARCHAR2(50 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" ;
