-- Licensed Materials - Property of IBM
--
-- BI and PM: CM
--
-- (C) Copyright IBM Corp. 2008, 2009
--
-- US Government Users Restricted Rights - Use, duplication or disclosure
-- restricted by GSA ADP Schedule Contract with IBM Corp.

-- Copyright (C) 2008 Cognos ULC, an IBM Company. All rights reserved.
-- Cognos (R) is a trademark of Cognos ULC, (formerly Cognos Incorporated).

CREATE table CMOBJPROPS75 (
	CMID         	integer not null,
	RESOURCETYPE	varchar (512),
	SPEC		blob(1G),
	CONSTRAINT PK_CMOBJPROPS75 PRIMARY KEY (CMID)
) IN CMSCRIPT_CREATE_IN;

CREATE  UNIQUE  INDEX PK_CMOBJPROPS75 ON CMOBJPROPS75 (CMID) USING STOGROUP CMSCRIPT_STOGROUP;

create index IDX_RESOURCETYPE on CMOBJPROPS75(RESOURCETYPE) USING STOGROUP CMSCRIPT_STOGROUP;

CREATE AUXILIARY TABLE CMATB098
   IN CMSCRIPT_DATABASE.CMSCRIPT_CS_IDCML098
   STORES CMOBJPROPS75
   COLUMN SPEC;

CREATE  UNIQUE  INDEX CMIDX098 ON CMATB098 USING STOGROUP CMSCRIPT_STOGROUP;

CREATE table CMOBJPROPS76 (
	CMID         	integer not null,
	CONTENTTYPE	varchar (512),
	CONSTRAINT PK_CMOBJPROPS76 PRIMARY KEY (CMID)
) IN CMSCRIPT_CREATE_IN;

CREATE  UNIQUE  INDEX PK_CMOBJPROPS76 ON CMOBJPROPS76 (CMID) USING STOGROUP CMSCRIPT_STOGROUP;

insert into CMOBJPROPS76 (CMID) select CMID from CMOBJECTS where CLASSID = 20

CREATE table CMOBJPROPS78 (
	CMID			integer not null,
	BINDINGNAME		varchar (512),
	INPUTMESSNAME		varchar (512),
	OPERATIONNAME		varchar (512),
	OUTPUTMESSNAME		varchar (512),
	SERVICENAME		varchar (512),
	BULKEVENTS		decimal(1, 0),
	URI			clob (4000),
	constraint PK_CMOBJPROPS78 primary key (CMID)
) IN CMSCRIPT_CREATE_IN;

CREATE  UNIQUE  INDEX PK_CMOBJPROPS78 ON CMOBJPROPS78 (CMID) USING STOGROUP CMSCRIPT_STOGROUP;

CREATE AUXILIARY TABLE CMATB099
   IN CMSCRIPT_DATABASE.CMSCRIPT_CS_IDCML099
   STORES CMOBJPROPS78
   COLUMN URI;

CREATE  UNIQUE  INDEX CMIDX099 ON CMATB099 USING STOGROUP CMSCRIPT_STOGROUP;
