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

CREATE TABLE CMARCHIVEQUEUE (
	OBJID 	 	VARCHAR2(255) NULL,
	ITEMID	 	VARCHAR2(255) NOT NULL,
	QUEUEID		VARCHAR2(255) NOT NULL,
	WORKFLOW 	VARCHAR2(255) NOT NULL,
	CONSUMERNAME	VARCHAR2(255) NULL,
	STATE		number(10),
	INSERTIONTIME 	TIMESTAMP NOT NULL,
	CONSTRAINT PK_CMARCHIVEQUEUE PRIMARY KEY (ITEMID)
);

CREATE TABLE CMDELETEQUEUE (
	OBJID 	 	VARCHAR2(255) NULL,
	ITEMID	 	VARCHAR2(255) NOT NULL,
	QUEUEID		VARCHAR2(255) NOT NULL,
	WORKFLOW 	VARCHAR2(255) NOT NULL,
	CONSUMERNAME	VARCHAR2(255) NULL,
	STATE		number(10),
	INSERTIONTIME 	TIMESTAMP NOT NULL,
	CONSTRAINT PK_CMDELETEQUEUE PRIMARY KEY (ITEMID)
);

CREATE TABLE CMQUEUELOCK (
	QUEUEID		VARCHAR2(255) NOT NULL,
	CONSTRAINT PK_CMQUEUELOCK PRIMARY KEY (QUEUEID)
);
