-- 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		varchar(255)	not null,
	CI_CRYPTOKEY	varchar(255)	not null,	
	DATA			blob(1G),
	constraint PK_CMCRYPTOKEYS primary key (CI_CRYPTOKEY)
)

create table CMCAKEYS (
	CAKEY		varchar(255)	not null,
	CI_CAKEY	varchar(255)	not null,	
	DATA			blob(1G),
	constraint PK_CMCAKEYS primary key (CI_CAKEY)
)

create table CMCAPROPS (
	PROPNAME	varchar (50)	not null,
	PROPINTVALUE	integer 	not null,
	PROPVALUE	clob 	(1G),
	CONSTRAINT PK_CMCAPROPS PRIMARY KEY (PROPNAME)
)

insert into CMCAPROPS (PROPNAME, PROPINTVALUE, PROPVALUE) values ('FRESHNESS', 0, NULL)