CREATE TABLE hrt_pool_associations (
    POOL_ASSOCIATION_ID      NUMBER(18, 0),
    POOL_ID                  NUMBER(18, 0)    NOT NULL,
    ENTERPRISE_ID            NUMBER(18, 0),
    OBJECT_TYPE              VARCHAR2(120)    NOT NULL,
    OBJECT_ID                NUMBER(18, 0)    NOT NULL,
    OBJECT_VERSION_NUMBER    NUMBER(9, 0)     NOT NULL,
    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),
    POOL_ASSOCIATION_ID      NUMBER(18, 0),
    POOL_ID                  NUMBER(18, 0)    NOT NULL,
    ENTERPRISE_ID            NUMBER(18, 0),
    OBJECT_TYPE              VARCHAR2(120)    NOT NULL,
    OBJECT_ID                NUMBER(18, 0)    NOT NULL,
    OBJECT_VERSION_NUMBER    NUMBER(9, 0)     NOT NULL,
    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),
    CONSTRAINT pk_hrt_pool_associations PRIMARY KEY (POOL_ASSOCIATION_ID, ENTERPRISE_ID, POOL_ASSOCIATION_ID, ENTERPRISE_ID)
);
