CREATE OR REPLACE TABLE RESTAPI.API_PARAM_RULES FOR SYSTEM NAME API_P00002 ( 
	RULE_ID INTEGER GENERATED ALWAYS AS IDENTITY ( 
	START WITH 1 INCREMENT BY 1 
	NO MINVALUE NO MAXVALUE 
	NO CYCLE NO ORDER 
	CACHE 20 ) 
	, 
	APPNAME VARCHAR(128) CCSID 37 DEFAULT NULL , 
	APPFUNC VARCHAR(128) CCSID 37 DEFAULT NULL , 
	PATTERN VARCHAR(256) CCSID 37 NOT NULL , 
	RESTNAME VARCHAR(128) CCSID 37 DEFAULT NULL , 
	"LOCATION" VARCHAR(10) CCSID 37 DEFAULT NULL , 
	TYPE_NAME VARCHAR(16) ALLOCATE(4) CCSID 37 DEFAULT 'CLOB' , 
	NULLABLE CHAR(1) CCSID 37 DEFAULT 'Y' , 
	PRECISION INTEGER DEFAULT 2147483647 , 
	"CCSID" INTEGER DEFAULT 1208 , 
	PRIORITY INTEGER NOT NULL DEFAULT 100 , 
	CONSTRAINT RESTAPI.Q_RESTAPI_API_P00002_RULE_ID_00001 PRIMARY KEY( RULE_ID ) )	  
	  
	RCDFMT API_P00002 ; 

GRANT ALTER , DELETE , INDEX , INSERT , REFERENCES , SELECT , UPDATE   
ON RESTAPI.API_PARAM_RULES TO AMAPICS WITH GRANT OPTION ; 

GRANT DELETE , INSERT , SELECT , UPDATE   
ON RESTAPI.API_PARAM_RULES TO PUBLIC ; 

