CREATE TABLE hrt_channel_message_access (
    MESSAGE_ACCESS_ID        NUMBER(18, 0),
    MESSAGE_ID               NUMBER(18, 0)    NOT NULL,
    SHARED_BY_PERSON_ID      NUMBER(18, 0),
    SHARED_WITH_PERSON_ID    NUMBER(18, 0),
    OBJECT_TYPE              VARCHAR2(120),
    OBJECT_ID                NUMBER(18, 0),
    BUSINESS_GROUP_ID        NUMBER(18, 0),
    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),
    MESSAGE_ACCESS_ID        NUMBER(18, 0),
    MESSAGE_ID               NUMBER(18, 0)    NOT NULL,
    SHARED_BY_PERSON_ID      NUMBER(18, 0),
    SHARED_WITH_PERSON_ID    NUMBER(18, 0),
    OBJECT_TYPE              VARCHAR2(120),
    OBJECT_ID                NUMBER(18, 0),
    BUSINESS_GROUP_ID        NUMBER(18, 0),
    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_channel_message_access PRIMARY KEY (MESSAGE_ACCESS_ID, BUSINESS_GROUP_ID, MESSAGE_ACCESS_ID, BUSINESS_GROUP_ID)
);
