--------------------------------------------------------
--  DDL for Table TMS_CUSTODY_BALANCE
--------------------------------------------------------

  CREATE TABLE "CT_ET_TEMPLATES"."TMS_CUSTODY_BALANCE" 
   (	"A_KEY" NUMBER(38,0), 
	"A_WORKFLOW_HISTORY_KEY" NUMBER(38,0), 
	"ID" NUMBER(12,0), 
	"CLIENT_ID" VARCHAR2(20 CHAR) COLLATE "USING_NLS_COMP", 
	"CLIENT_UNIT_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"CUSTODY_ID" VARCHAR2(20 CHAR) COLLATE "USING_NLS_COMP", 
	"CUSTODY_UNIT_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"ACCOUNT_ID" VARCHAR2(35 CHAR) COLLATE "USING_NLS_COMP", 
	"DATE_" DATE, 
	"INSTRUMENT_ID" VARCHAR2(30 CHAR) COLLATE "USING_NLS_COMP", 
	"CURRENCY_ID" VARCHAR2(4 CHAR) COLLATE "USING_NLS_COMP", 
	"ISSUER_ID" VARCHAR2(20 CHAR) COLLATE "USING_NLS_COMP", 
	"ISSUER_UNIT_ID" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"MATURITY_DATE" DATE, 
	"BALANCE_AMOUNT" NUMBER(19,4), 
	"SELLABLE_AMOUNT" NUMBER(19,4), 
	"BALANCE_FACE_AMOUNT" NUMBER(19,4), 
	"SELLABLE_FACE_AMOUNT" NUMBER(19,4), 
	"BALANCE_UNITS" NUMBER(38,8), 
	"SELLABLE_UNITS" NUMBER(38,8), 
	"COMMENT_" VARCHAR2(255 CHAR) COLLATE "USING_NLS_COMP", 
	"FLAGS" NUMBER(10,0), 
	"INSTRUMENT_GROUP" VARCHAR2(100 CHAR) COLLATE "USING_NLS_COMP", 
	"ISIN_CODE" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"CUSIP_CODE" VARCHAR2(50 CHAR) COLLATE "USING_NLS_COMP", 
	"SEDOL_CODE" 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" ;
