CREATE TABLE grc_ent_entlmnt_access_h (
    ID                   NUMBER(19, 0) ,
    REVISION_NUMBER      NUMBER(10, 0) ,
    ENTITLEMENT_ID       NUMBER(19, 0)     NOT NULL,
    DATASOURCE_ID        NUMBER(19, 0)     NOT NULL,
    ACCESS_CONTROL       NUMBER(1, 0)      NOT NULL,
    CHANGE_CONTROL       NUMBER(1, 0)      NOT NULL,
    IS_AUDIT             NUMBER(1, 0)      NOT NULL,
    IS_STATUS            NUMBER(1, 0)      NOT NULL,
    CREATED_BY           VARCHAR2(256)     NOT NULL,
    LAST_UPDATED_BY      VARCHAR2(256)     NOT NULL,
    LAST_UPDATE_LOGIN    VARCHAR2(128) ,
    CREATION_DATE        TIMESTAMP(6)      NOT NULL,
    LAST_UPDATE_DATE     TIMESTAMP(6)      NOT NULL,
    ACCESS_ID            VARCHAR2(2048)    NOT NULL,
    ID                   NUMBER(19, 0) ,
    REVISION_NUMBER      NUMBER(10, 0) ,
    ENTITLEMENT_ID       NUMBER(19, 0)     NOT NULL,
    DATASOURCE_ID        NUMBER(19, 0)     NOT NULL,
    ACCESS_CONTROL       NUMBER(1, 0)      NOT NULL,
    CHANGE_CONTROL       NUMBER(1, 0)      NOT NULL,
    IS_AUDIT             NUMBER(1, 0)      NOT NULL,
    IS_STATUS            NUMBER(1, 0)      NOT NULL,
    CREATED_BY           VARCHAR2(256)     NOT NULL,
    LAST_UPDATED_BY      VARCHAR2(256)     NOT NULL,
    LAST_UPDATE_LOGIN    VARCHAR2(128) ,
    CREATION_DATE        TIMESTAMP(6)      NOT NULL,
    LAST_UPDATE_DATE     TIMESTAMP(6)      NOT NULL,
    ACCESS_ID            VARCHAR2(2048)    NOT NULL,
    CONSTRAINT pk_grc_ent_entlmnt_access_h PRIMARY KEY (ID, REVISION_NUMBER, ID, REVISION_NUMBER)
);
