--------------------------------------------------------
--  DDL for Table W_ODS_TMS_BALANCE
--------------------------------------------------------

  CREATE TABLE "CT_ET_TEMPLATES"."W_ODS_TMS_BALANCE" 
   (	"A_KEY" NUMBER(38,0), 
	"A_WORKFLOW_HISTORY_KEY" NUMBER(38,0), 
	"NUMBER_" NUMBER(12,0), 
	"ID" NUMBER(12,0), 
	"DATE_" DATE, 
	"AMOUNT" NUMBER(19,4), 
	"ACCRUED_INTEREST_PERCENT" BINARY_DOUBLE, 
	"CLIENT_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CLIENT_UNIT_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BANK_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BANK_UNIT_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"ACCOUNT_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CURRENCY_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CP_CLIENT_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CP_CLIENT_UNIT_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"TYPE" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"ORDER_NUMBER" NUMBER(12,0), 
	"FLAGS" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"NAME" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"PORTFOLIO_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"INSTRUMENT_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"INSTRUMENT_GROUP" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"STATE_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"PAYMENT_ID" NUMBER(12,0), 
	"PAYMENT_DATE" DATE, 
	"PAYMENT_CURRENCY_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"PAYMENT_AMOUNT" NUMBER(19,4), 
	"FX_SPOT_RATE" BINARY_DOUBLE, 
	"AFFECT_NUMBER" NUMBER(12,0), 
	"PAYMENT_CLIENT_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"PAYMENT_CLIENT_UNIT_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CREDIT_CLIENT_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"
   )  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" ;
