CREATE TABLE gtg_am_metadata_priv (
    ID                    NUMBER(18, 0) ,
    ENTITY_ID             NUMBER(18, 0)     NOT NULL,
    PRIVILEGE             VARCHAR2(4000),
    APPLICATION_NAME      VARCHAR2(400) ,
    RESOURCE_TYPE_NAME    VARCHAR2(400) ,
    RESOURCE_NAME         VARCHAR2(4000),
    ACTION                VARCHAR2(400) ,
    CREATED_BY            VARCHAR2(256)     NOT NULL,
    CREATION_DATE         TIMESTAMP(6)      NOT NULL,
    LAST_UPDATED_BY       VARCHAR2(256)     NOT NULL,
    LAST_UPDATE_DATE      TIMESTAMP(6)      NOT NULL,
    LAST_UPDATE_LOGIN     VARCHAR2(128) ,
    IS_ACTIVE             NUMBER(1, 0)  ,
    ID                    NUMBER(18, 0) ,
    ENTITY_ID             NUMBER(18, 0)     NOT NULL,
    PRIVILEGE             VARCHAR2(4000),
    CREATED_BY            VARCHAR2(256)     NOT NULL,
    CREATION_DATE         TIMESTAMP(6)      NOT NULL,
    LAST_UPDATED_BY       VARCHAR2(256)     NOT NULL,
    LAST_UPDATE_DATE      TIMESTAMP(6)      NOT NULL,
    LAST_UPDATE_LOGIN     VARCHAR2(128) ,
    APPLICATION_NAME      VARCHAR2(400) ,
    RESOURCE_TYPE_NAME    VARCHAR2(400) ,
    RESOURCE_NAME         VARCHAR2(4000),
    ACTION                VARCHAR2(400) ,
    IS_ACTIVE             NUMBER(1, 0)  ,
    CONSTRAINT pk_gtg_am_metadata_priv PRIMARY KEY (ID, ID)
);
