--------------------------------------------------------
--  DDL for Table W_ODS_TMS_CASHFLOW
--------------------------------------------------------

  CREATE TABLE "CT_ET_TEMPLATES"."W_ODS_TMS_CASHFLOW" 
   (	"A_KEY" NUMBER(38,0), 
	"A_WORKFLOW_HISTORY_KEY" NUMBER(38,0), 
	"PARAM_13" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"ACCRUED_INTEREST" NUMBER(19,4), 
	"ACTIVE_SINCE" DATE, 
	"ACTIVE_UNTIL" DATE, 
	"AFFECT_NUMBER" NUMBER(12,0), 
	"AGREED_AMOUNT" NUMBER(19,4), 
	"AMOUNT" NUMBER(19,4), 
	"AUDIT_NUMBER" NUMBER(12,0), 
	"BASE_CURRENCY_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BATCH_ID" NUMBER(12,0), 
	"BOOK_VALUE" NUMBER(19,4), 
	"CAP" BINARY_DOUBLE, 
	"CASHFLOW_FLAGS" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CASHFLOW_FLAGS_2" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CASHFLOW_MATURITY_DATE" DATE, 
	"CASHFLOW_TYPE_NAME" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CASHFLOW_VALUE_DATE" DATE, 
	"CLOSING_DATE" DATE, 
	"COLLATERAL_NUMBER" NUMBER(12,0), 
	"COMMENT_" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"COMMENT_1" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"COMMENT_2" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"COMMENT_3" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"COMMENT_4" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CONTEXTS" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CP_CLIENT_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"OTHER_ACCOUNT_1_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"OTHER_ACCOUNT_2_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"OTHER_ACCOUNT_3_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"OTHER_ACCOUNT_4_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"OTHER_BANK_1_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"OTHER_BANK_2_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"OTHER_BANK_2_SWIFT_CODE" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"OTHER_BANK_3_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"OTHER_BANK_3_SWIFT_CODE" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"OTHER_BANK_4_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"OTHER_BANK_4_SWIFT_CODE" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"OTHER_BANK_1_SWIFT_CODE" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"OTHER_BANK_1_UNIT_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CP_PORTFOLIO_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CP_TRADER_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CP_CLIENT_UNIT_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CREATOR_TAG" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CURRENCY_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CURRENCY_CLASS_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"DATE_" DATE, 
	"DATE_BASIS" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"DATTR_0" DATE, 
	"DATTR_1" DATE, 
	"DATTR_2" DATE, 
	"DATTR_3" DATE, 
	"DATTR_4" DATE, 
	"DATTR_5" DATE, 
	"DATTR_6" DATE, 
	"DATTR_7" DATE, 
	"DATTR_8" DATE, 
	"DATTR_9" DATE, 
	"DEAL_PRICE" BINARY_DOUBLE, 
	"DEAL_RATE" BINARY_DOUBLE, 
	"PARAM_1" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"EXPIRY_DATE" DATE, 
	"FX_BOOK_RATE" BINARY_DOUBLE, 
	"MATTR_4" NUMBER(19,4), 
	"FX_RATE" BINARY_DOUBLE, 
	"FX_SPOT_RATE" BINARY_DOUBLE, 
	"SATTR_1" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"FACTOR" BINARY_DOUBLE, 
	"FATTR_0" BINARY_DOUBLE, 
	"FATTR_1" BINARY_DOUBLE, 
	"FATTR_2" BINARY_DOUBLE, 
	"FATTR_3" BINARY_DOUBLE, 
	"FATTR_4" BINARY_DOUBLE, 
	"FIXING_OFFSET" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"FIXING_PERIOD_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"FIXING_QUOTE" BINARY_DOUBLE, 
	"FIXING_RATE_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"FLAGS" NUMBER(12,0), 
	"FLAGS_2" NUMBER(12,0), 
	"FLAGS_3" NUMBER(12,0), 
	"FLOOR" BINARY_DOUBLE, 
	"ID" NUMBER(12,0), 
	"IATTR_0" NUMBER(12,0), 
	"IATTR_1" NUMBER(12,0), 
	"IATTR_2" NUMBER(12,0), 
	"IATTR_3" NUMBER(12,0), 
	"IATTR_4" NUMBER(12,0), 
	"IATTR_5" NUMBER(12,0), 
	"IATTR_7" NUMBER(12,0), 
	"IATTR_8" NUMBER(12,0), 
	"IATTR_9" NUMBER(12,0), 
	"INSTRUMENT_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"INSTRUMENT_GROUP" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"INSTRUMENT_TYPE_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"ISSUER_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"ISSUER_UNIT_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"KIND_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"LEG_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"LEG_GROUP" NUMBER(12,0), 
	"SATTR_4" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"LOGICAL_NUMBER" NUMBER(12,0), 
	"SATTR_3" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"MARGIN1" BINARY_DOUBLE, 
	"MARGIN2" BINARY_DOUBLE, 
	"MARKET_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"PARAM_11" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"MATTR_0" NUMBER(19,4), 
	"MATTR_1" NUMBER(19,4), 
	"MATTR_2" NUMBER(19,4), 
	"MATTR_3" NUMBER(19,4), 
	"MATURITY_DATE" DATE, 
	"PARAM_9" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"NOMINAL_AMOUNT" NUMBER(19,4), 
	"NOMINAL_RATE" BINARY_DOUBLE, 
	"NUM" NUMBER(12,0), 
	"NUMBER_" NUMBER(12,0), 
	"OPENING_DATE" DATE, 
	"OPENING_TIME" DATE, 
	"IATTR_6" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"PARAM_10" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"PARAM_4" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"OWNER_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"LOCAL_ACCOUNT_1_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"LOCAL_ACCOUNT_2_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"LOCAL_ACCOUNT_2_CLOSING_DATE" DATE, 
	"LOCAL_ACCOUNT_3_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"LOCAL_ACCOUNT_3_CLOSING_DATE" DATE, 
	"LOCAL_ACCOUNT_4_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"LOCAL_ACCOUNT_4_CLOSING_DATE" DATE, 
	"LOCAL_ACCOUNT_1_CLOSING_DATE" DATE, 
	"LOCAL_BANK_1_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"LOCAL_BANK_2_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"LOCAL_BANK_2_SWIFT_CODE" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"LOCAL_BANK_3_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"LOCAL_BANK_3_SWIFT_CODE" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"LOCAL_BANK_4_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"LOCAL_BANK_4_SWIFT_CODE" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"LOCAL_BANK_1_SWIFT_CODE" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"LOCAL_BANK_1_UNIT_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"OWNER_UNIT_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"P_DATE_BASIS" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"PACKAGE_ID" NUMBER(12,0), 
	"PACKAGE_MAIN_TYPE_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"PACKAGE_TYPE_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"PARAM_18" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"PARAM_3" 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_19" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"PARENT_NUMBER" NUMBER(12,0), 
	"PAYMENT_AMOUNT" NUMBER(19,4), 
	"PAYMENT_CURRENCY_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"PAYMENT_DATE" DATE, 
	"SATTR_13" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"PORTFOLIO_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"PREMIUM_AMOUNT" NUMBER(19,4), 
	"PREMIUM_CURRENCY_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"PREMIUM_DATE" DATE, 
	"PREMIUM_PRICE" BINARY_DOUBLE, 
	"PREMIUM_TYPE" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"RATE_TYPE" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"PARAM_0" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"REFERENCE_NUMBER" NUMBER(12,0), 
	"PARAM_2" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"SATTR_0" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"SATTR_10" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"SATTR_11" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"SATTR_12" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"SATTR_14" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"SATTR_15" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"SATTR_16" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"SATTR_17" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"SATTR_18" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"SATTR_19" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"SATTR_5" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"SATTR_6" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"SATTR_7" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"SATTR_8" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"SATTR_9" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"SECONDARY_INSTRUMENT_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"PARAM_16" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"ACTUAL_AMOUNT" NUMBER(19,4), 
	"OTHER_CLIENT_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"OTHER_CLIENT_UNIT_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"ACTUAL_CURRENCY_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"SETTLEMENT_DATE" DATE, 
	"LOCAL_CLIENT_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"LOCAL_CLIENT_UNIT_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"SIGN_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"SINCE_WHEN" DATE, 
	"SPREAD" BINARY_DOUBLE, 
	"STATUS" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"SUBTYPE_ID" NUMBER(12,0), 
	"BROKER_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"TOP_PORTFOLIO_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"TRADER_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"TRADING_UNIT" BINARY_DOUBLE, 
	"SATTR_2" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"TRANSACTION_CURRENCY_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"TRANSACTION_CURRENCY_2_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"TRANSACTION_DATE" DATE, 
	"TRANSACTION_MATURITY_DATE" DATE, 
	"TRANSACTION_OPENING_DATE" DATE, 
	"PARAM_12" 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_17" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"STATE_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"TRANSACTION_TYPE_ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"TRANSACTION_VALUE_DATE" DATE, 
	"TYPE_ID" NUMBER(12,0), 
	"UNITS" BINARY_DOUBLE, 
	"UNTIL_WHEN" DATE, 
	"VALUE_DATE" DATE
   )  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" ;
