 
 DROP TABLE IF EXISTS AM_OPERATION_POLICY_DEFINITION;
 CREATE TABLE IF NOT EXISTS AM_OPERATION_POLICY_DEFINITION (
-   DEFINITION_ID INTEGER AUTO_INCREMENT,
+   DEFINITION_ID SERIAL,
    POLICY_UUID VARCHAR(45) NOT NULL,
    POLICY_DEFINITION bytea NOT NULL,
    GATEWAY_TYPE VARCHAR(20) NOT NULL,


DROP TABLE IF EXISTS AM_API_OPERATION_POLICY;
CREATE TABLE IF NOT EXISTS AM_API_OPERATION_POLICY (
   API_SPECIFIC_POLICY_ID INTEGER AUTO_INCREMENT,
   POLICY_UUID VARCHAR(45) NOT NULL,
   API_UUID VARCHAR(45) NOT NULL,
   REVISION_UUID VARCHAR(45),


DROP TABLE IF EXISTS AM_COMMON_OPERATION_POLICY;
CREATE TABLE IF NOT EXISTS AM_COMMON_OPERATION_POLICY (
   COMMON_POLICY_ID SERIAL,
   POLICY_UUID VARCHAR(45) NOT NULL,
   FOREIGN KEY (POLICY_UUID) REFERENCES AM_OPERATION_POLICY(POLICY_UUID) ON DELETE CASCADE,
   PRIMARY KEY(COMMON_POLICY_ID)
