-- 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 CMCRYPTOKEYS (
	CRYPTOKEY		varchar2(381)	not null,
	CI_CRYPTOKEY	varchar2(381)	not null,	
	DATA			blob,
	constraint PK_CMCRYPTOKEYS primary key (CI_CRYPTOKEY)
);

create table CMCAKEYS (
	CAKEY		varchar2(381)	not null,
	CI_CAKEY	varchar2(381)	not null,	
	DATA			blob,
	constraint PK_CMCAKEYS primary key (CI_CAKEY)
);

create table CMCAPROPS (
	PROPNAME	varchar2 (50)	NOT NULL,
	PROPINTVALUE	number(10) default(0) NOT NULL,
	PROPVALUE	clob NULL,
	CONSTRAINT PK_CMCAPROPS PRIMARY KEY (PROPNAME)
);

INSERT INTO CMCAPROPS (PROPNAME, PROPINTVALUE, PROPVALUE) VALUES ('FRESHNESS', 0, NULL);
