-- 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		lvarchar(255)	not null,
	CI_CRYPTOKEY		lvarchar(255)	not null,	
	DATA			blob,
	primary key (CRYPTOKEY) constraint PK_CMCRYPTOKEYS
) lock mode row;

create table CMCAKEYS (
	CAKEY		lvarchar(255)	not null,
	CI_CAKEY	lvarchar(255)	not null,	
	DATA			blob,
	primary key (CAKEY) constraint PK_CMCAKEYS
) lock mode row;

create table CMCAPROPS (
	PROPNAME	lvarchar (50)	not null,
	PROPINTVALUE	integer 	not null,
	PROPVALUE	clob,
	primary key (PROPNAME) constraint PK_CMCAPROPS 
) lock mode row;

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