--------------------------------------------------------
--  DDL for Table TMS_RAR_TRANSACTIONS_LOG
--------------------------------------------------------

  CREATE TABLE "CT_ET_TEMPLATES"."TMS_RAR_TRANSACTIONS_LOG" 
   (	"A_KEY" NUMBER(38,0), 
	"A_WORKFLOW_HISTORY_KEY" NUMBER(38,0), 
	"ECBTS" DATE, 
	"ECBOPERATION" CHAR(6 CHAR) COLLATE "USING_NLS_COMP", 
	"LOG_DATE" DATE, 
	"LOG_USER" VARCHAR2(30 CHAR) COLLATE "USING_NLS_COMP", 
	"LOG_ACTION" VARCHAR2(20 CHAR) COLLATE "USING_NLS_COMP", 
	"LOG_TYPE" VARCHAR2(20 CHAR) COLLATE "USING_NLS_COMP", 
	"NUMBER_" NUMBER(28,0), 
	"MARKET_ID" VARCHAR2(15 CHAR) COLLATE "USING_NLS_COMP", 
	"INSTRUMENT_ID" VARCHAR2(30 CHAR) COLLATE "USING_NLS_COMP", 
	"ISSUER_ID" VARCHAR2(20 CHAR) COLLATE "USING_NLS_COMP", 
	"CURRENCY_ID" VARCHAR2(12 CHAR) COLLATE "USING_NLS_COMP", 
	"SIGN_ID" NUMBER(28,0), 
	"TYPE_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"KIND_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"LOGICAL_NUMBER" NUMBER(28,0), 
	"PARENT_NUMBER" NUMBER(28,0), 
	"DATE_" DATE, 
	"SETTLEMENT_DATE" DATE, 
	"VALUE_DATE" DATE, 
	"OPENING_DATE" DATE, 
	"OPENING_TIME" DATE, 
	"CLOSING_DATE" DATE, 
	"SPREAD" NUMBER(28,10), 
	"SPREAD_2" NUMBER(28,10), 
	"PORTFOLIO_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"OWNER_ID" VARCHAR2(20 CHAR) COLLATE "USING_NLS_COMP", 
	"TRADER_ID" VARCHAR2(30 CHAR) COLLATE "USING_NLS_COMP", 
	"CP_CLIENT_ID" VARCHAR2(20 CHAR) COLLATE "USING_NLS_COMP", 
	"STATE_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"STATUS" NUMBER(28,0), 
	"FLAGS" NUMBER(28,0), 
	"FLAGS_2" NUMBER(28,0), 
	"FLAGS_3" NUMBER(28,0), 
	"STAMP" NUMBER(28,0), 
	"CURRENCY_2_ID" VARCHAR2(12 CHAR) COLLATE "USING_NLS_COMP", 
	"AUDIT_NUMBER" NUMBER(28,0), 
	"REFERENCE_NUMBER" NUMBER(28,0), 
	"BATCH_ID" NUMBER(28,0), 
	"MATURITY_DATE" DATE, 
	"EXPIRY_DATE" DATE, 
	"DEAL_RATE" NUMBER(28,10), 
	"DEAL_PRICE" NUMBER(28,10), 
	"NOMINAL_RATE" NUMBER(28,10), 
	"DEAL_RATE_TYPE_ID" NUMBER(28,0), 
	"NOMINAL_RATE_TYPE_ID" NUMBER(28,0), 
	"DEAL_RATE_2" NUMBER(28,10), 
	"DEAL_PRICE_2" NUMBER(28,10), 
	"NOMINAL_RATE_2" NUMBER(28,10), 
	"DEAL_RATE_2_TYPE_ID" NUMBER(28,0), 
	"NOMINAL_RATE_2_TYPE_ID" NUMBER(28,0), 
	"RATE_CAP" NUMBER(28,10), 
	"RATE_FLOOR" NUMBER(28,10), 
	"PREMIUM_CURRENCY_ID" VARCHAR2(4 CHAR) COLLATE "USING_NLS_COMP", 
	"PREMIUM_AMOUNT" NUMBER(28,10), 
	"PREMIUM_DATE" DATE, 
	"PREMIUM_PRICE" NUMBER(28,10), 
	"PREMIUM_TYPE_ID" NUMBER(28,0), 
	"MARGIN1" NUMBER(28,10), 
	"MARGIN2" NUMBER(28,10), 
	"UNITS" NUMBER(28,10), 
	"AMOUNT" NUMBER(28,10), 
	"AGREED_AMOUNT" NUMBER(28,10), 
	"BOOK_VALUE" NUMBER(28,10), 
	"ACCRUED_INTEREST" NUMBER(28,10), 
	"SECONDARY_INSTRUMENT_ID" VARCHAR2(30 CHAR) COLLATE "USING_NLS_COMP", 
	"COLLATERAL_INSTRUMENT_ID" VARCHAR2(30 CHAR) COLLATE "USING_NLS_COMP", 
	"COLLATERAL_AMOUNT" NUMBER(28,10), 
	"COLLATERAL_UNITS" NUMBER(28,10), 
	"COLLATERAL_NUMBER" NUMBER(28,0), 
	"BROKER_ID" VARCHAR2(20 CHAR) COLLATE "USING_NLS_COMP", 
	"CP_TRADER_ID" VARCHAR2(30 CHAR) COLLATE "USING_NLS_COMP", 
	"CP_PORTFOLIO_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"SATTR_0" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"SATTR_1" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"SATTR_2" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"SATTR_3" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"SATTR_4" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"SATTR_5" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"SATTR_6" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"SATTR_7" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"SATTR_8" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"SATTR_9" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"SATTR_10" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"SATTR_11" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"SATTR_12" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"SATTR_13" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"SATTR_14" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"SATTR_15" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"SATTR_16" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"SATTR_17" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"SATTR_18" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"SATTR_19" VARCHAR2(50 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, 
	"IATTR_0" NUMBER(28,0), 
	"IATTR_1" NUMBER(28,0), 
	"IATTR_2" NUMBER(28,0), 
	"IATTR_3" NUMBER(28,0), 
	"IATTR_4" NUMBER(28,0), 
	"IATTR_5" NUMBER(28,0), 
	"IATTR_6" NUMBER(28,0), 
	"IATTR_7" NUMBER(28,0), 
	"IATTR_8" NUMBER(28,0), 
	"IATTR_9" NUMBER(28,0), 
	"MATTR_0" NUMBER(28,10), 
	"MATTR_1" NUMBER(28,10), 
	"MATTR_2" NUMBER(28,10), 
	"MATTR_3" NUMBER(28,10), 
	"MATTR_4" NUMBER(28,10), 
	"FATTR_0" NUMBER(28,10), 
	"FATTR_1" NUMBER(28,10), 
	"FATTR_2" NUMBER(28,10), 
	"FATTR_3" NUMBER(28,10), 
	"FATTR_4" NUMBER(28,10), 
	"PARAM_0" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"PARAM_1" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"PARAM_2" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"PARAM_3" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"PARAM_4" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"PARAM_5" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"PARAM_6" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"PARAM_7" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"PARAM_8" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"PARAM_9" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"PARAM_10" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"PARAM_11" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"PARAM_12" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"PARAM_13" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"PARAM_14" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"PARAM_15" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"PARAM_16" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"PARAM_17" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"PARAM_18" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"PARAM_19" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"LOG_CALLER" VARCHAR2(100 CHAR) COLLATE "USING_NLS_COMP", 
	"CONTEXTS" NUMBER(28,0), 
	"GUARANTOR_FACTOR" NUMBER(28,10), 
	"GUARANTOR_ID" VARCHAR2(20 CHAR) COLLATE "USING_NLS_COMP", 
	"ISSUER_FACTOR" NUMBER(28,10), 
	"LOG_SERIAL" NUMBER(28,0), 
	"TRADING_UNIT" NUMBER(28,10), 
	"CREATOR_TAG" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"LOG_ID" NUMBER(12,0), 
	"ISSUER_UNIT_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"OWNER_UNIT_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"CP_CLIENT_UNIT_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"TAGS" VARCHAR2(1024 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" ;
