CREATE TABLE fnd_doc_categories_to_entities (
    CATEGORY_ID           NUMBER(18, 0) ,
    DOCUMENT_ENTITY_ID    NUMBER(18, 0) ,
    ENTERPRISE_ID         NUMBER(18, 0) ,
    MODULE_ID             VARCHAR2(128) ,
    CREATION_DATE         TIMESTAMP(6)      NOT NULL,
    CREATED_BY            VARCHAR2(256)     NOT NULL,
    LAST_UPDATE_DATE      TIMESTAMP(6)      NOT NULL,
    LAST_UPDATED_BY       VARCHAR2(256)     NOT NULL,
    LAST_UPDATE_LOGIN     VARCHAR2(128) ,
    SEED_DATA_SOURCE      VARCHAR2(2048),
    ORA_SEED_SET1         VARCHAR2(4)       NOT NULL,
    ORA_SEED_SET2         VARCHAR2(4)       NOT NULL,
    CATEGORY_ID           NUMBER(18, 0) ,
    DOCUMENT_ENTITY_ID    NUMBER(18, 0) ,
    ENTERPRISE_ID         NUMBER(18, 0) ,
    MODULE_ID             VARCHAR2(128) ,
    CREATION_DATE         TIMESTAMP(6)      NOT NULL,
    CREATED_BY            VARCHAR2(256)     NOT NULL,
    LAST_UPDATE_DATE      TIMESTAMP(6)      NOT NULL,
    LAST_UPDATED_BY       VARCHAR2(256)     NOT NULL,
    LAST_UPDATE_LOGIN     VARCHAR2(128) ,
    SEED_DATA_SOURCE      VARCHAR2(2048),
    ORA_SEED_SET1         VARCHAR2(4)       NOT NULL,
    ORA_SEED_SET2         VARCHAR2(4)       NOT NULL,
    CONSTRAINT pk_fnd_doc_categories_to_entities PRIMARY KEY (CATEGORY_ID, DOCUMENT_ENTITY_ID, ENTERPRISE_ID, CATEGORY_ID, DOCUMENT_ENTITY_ID, ENTERPRISE_ID)
);
