--------------------------------------------------------
--  DDL for Table TMS_SECURITY_POSITION
--------------------------------------------------------

  CREATE TABLE "CT_ET_TEMPLATES"."TMS_SECURITY_POSITION" 
   (	"A_KEY" NUMBER(38,0), 
	"A_WORKFLOW_HISTORY_KEY" NUMBER(38,0), 
	"DATE_" DATE, 
	"PORTFOLIO_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"INSTRUMENT_ID" VARCHAR2(30 CHAR) COLLATE "USING_NLS_COMP", 
	"CONTEXTS" NUMBER(10,0), 
	"CURRENCY_ID" VARCHAR2(4 CHAR) COLLATE "USING_NLS_COMP", 
	"PACKAGE_MAIN_TYPE_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"PACKAGE_TYPE_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"PACKAGE_ID" NUMBER(10,0), 
	"INFLOW_NOMINAL_AMOUNT" NUMBER(19,4), 
	"OUTFLOW_NOMINAL_AMOUNT" NUMBER(19,4), 
	"NOMINAL_AMOUNT" NUMBER(19,4), 
	"INFLOW_UNITS" NUMBER(19,4), 
	"OUTFLOW_UNITS" NUMBER(19,4), 
	"UNITS" NUMBER(19,4), 
	"INFLOW_BOOK_VALUE" NUMBER(19,4), 
	"OUTFLOW_BOOK_VALUE" NUMBER(19,4), 
	"BOOK_VALUE" NUMBER(19,4), 
	"REDEMPTION_AMOUNT" NUMBER(19,4), 
	"ACCRUED_PROFIT" NUMBER(19,4), 
	"INDEXATION_PROFIT" NUMBER(19,4), 
	"DISCOUNT_PREMIUM" NUMBER(19,4), 
	"ACCRUED_BOOK_VALUE" NUMBER(19,4), 
	"REALIZED_MTOM_PROFIT" NUMBER(19,4), 
	"REALIZED_ACCRUED_PROFIT" NUMBER(19,4), 
	"REALIZED_INDEXATION_PROFIT" NUMBER(19,4), 
	"BVC_MTOM_PROFIT" NUMBER(19,4), 
	"MTOM_PROFIT" NUMBER(19,4), 
	"MARKET_VALUE" NUMBER(19,4), 
	"ACCRUED_INTEREST" NUMBER(19,4), 
	"ACCRUED_INTEREST_BOUGHT" NUMBER(19,4), 
	"ACCRUED_INTEREST_SOLD" NUMBER(19,4), 
	"YIELD" NUMBER(28,10), 
	"PRICE" NUMBER(28,10), 
	"MARKET_QUOTE" NUMBER(28,10), 
	"INDEX_VALUE" NUMBER(28,10), 
	"ISSUER_ID" VARCHAR2(20 CHAR) COLLATE "USING_NLS_COMP", 
	"ISSUE_DATE" DATE, 
	"MATURITY_DATE" DATE, 
	"ISIN_CODE" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"ACCRUAL_METHOD" VARCHAR2(200 CHAR) COLLATE "USING_NLS_COMP", 
	"ACCRUAL_INTEREST_TYPE" VARCHAR2(200 CHAR) COLLATE "USING_NLS_COMP", 
	"ACCRUAL_DATE_BASIS" VARCHAR2(200 CHAR) COLLATE "USING_NLS_COMP", 
	"INPUT_DATE" DATE, 
	"FLAGS" NUMBER(10,0), 
	"FACE_AMOUNT" NUMBER(19,4)
   )  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" ;
