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

create table CMOBJPROPS82 (
	CMID			integer not null,
	BPMRESTURI		clob (4000),
	CONSTRAINT PK_CMOBJPROPS82 PRIMARY KEY (CMID) 
) IN CMSCRIPT_CREATE_IN;

CREATE  UNIQUE  INDEX PK_CMOBJPROPS82 ON CMOBJPROPS82 (CMID) USING STOGROUP CMSCRIPT_STOGROUP;

CREATE AUXILIARY TABLE CMATB112
   IN CMSCRIPT_DATABASE.CMSCRIPT_CS_IDCML112
   STORES CMOBJPROPS82
   COLUMN BPMRESTURI;

CREATE  UNIQUE  INDEX CMIDX112 ON CMATB112 USING STOGROUP CMSCRIPT_STOGROUP;

insert into CMOBJPROPS82 (CMID) select CMID from CMOBJECTS where CLASSID in (4);
