             TOKEN_ID VARCHAR (255) NOT NULL,
             ACCESS_TOKEN VARCHAR (255) NOT NULL,
             REFRESH_TOKEN VARCHAR (255),
-            CONSUMER_KEY_ID INTEGER,
+            CONSUMER_KEY_ID INTEGER NOT NULL,
             AUTHZ_USER VARCHAR (100) NOT NULL,
-            TENANT_ID INTEGER,
+            TENANT_ID INTEGER NOT NULL,
             USER_DOMAIN VARCHAR (50) NOT NULL,
             USER_TYPE VARCHAR (25) NOT NULL,
             TIME_CREATED TIMESTAMP,

            PRIMARY KEY (TOKEN_ID),
            FOREIGN KEY (CONSUMER_KEY_ID) REFERENCES IDN_OAUTH_CONSUMER_APPS(ID) ON DELETE CASCADE,
            CONSTRAINT CON_APP_KEY UNIQUE (CONSUMER_KEY_ID,AUTHZ_USER,TENANT_ID,USER_DOMAIN,USER_TYPE,TOKEN_SCOPE_HASH,
                                           TOKEN_STATE,TOKEN_STATE_ID))
/

CREATE INDEX IDX_AT_CK_AU ON IDN_OAUTH2_ACCESS_TOKEN(CONSUMER_KEY_ID, AUTHZ_USER, TOKEN_STATE, USER_TYPE)

    ASSOC_NAME VARCHAR (45),
    EVENT_ID VARCHAR(45),
    ASSOC_CONDITION VARCHAR (2000),
    WORKFLOW_ID VARCHAR (45) NOT NULL,
    IS_ENABLED CHAR (1) DEFAULT '1',
    PRIMARY KEY(ID),
    FOREIGN KEY (WORKFLOW_ID) REFERENCES WF_WORKFLOW(ID)ON DELETE CASCADE)
