PON_THREAD_MESSAGES
PON_THREAD_MESSAGES table stores the message level details within a thread initiated through the online discussion feature. This table stores the subject and content of the message and the message sender details. There can be multiple messages associated to a thread. This table also stores the type of broadcast for a message.
Details
-
Schema: FUSION
-
Object owner: PON
-
Object type: TABLE
-
Tablespace: Default
Primary Key
Name | Columns |
---|---|
PON_THREAD_MESSAGES_PK |
MESSAGE_ID |
Columns
Name | Datatype | Length | Precision | Not-null | Comments |
---|---|---|---|---|---|
MESSAGE_ID | NUMBER | 18 | Yes | System-generated unique number to identify a message in the thread | |
THREAD_ID | NUMBER | 18 | Yes | Thread Id of the thread to which the message belongs | |
SUBJECT | VARCHAR2 | 240 | Subject of the message | ||
CONTENT | CLOB | Content of the message | |||
MESSAGE_TYPE | VARCHAR2 | 20 | INTERNAL for messages within buyer organization and EXTERNAL for messages to or from supplier. Value will be based on the lookup PON_ONLINE_DISC_MSG_TYPE | ||
FROM_PERSON_ID | NUMBER | 18 | Person Id of the buyer / procurement agent who sent the message. Value will be null if the message was sent by a supplier | ||
FROM_PARTY_ID | NUMBER | 18 | Party Id of the supplier who sent the message. Value will be null if the message was sent by a buyer | ||
FROM_TRADING_PARTNER_ID | NUMBER | 18 | Supplier Company of the supplier who sent the message. Value will be null if the message was sent by a buyer | ||
BROADCAST_TYPE | VARCHAR2 | 25 | Yes | Broadcast type of the message. NONE if message is sent to individual buyers. TO_SUPPLIER if message is sent to individual suppliers. ALL_PARTICIPANTS if message is sent to all. ALL_INTERNAL_MEMBERS if the message is sent to all members of the collaboration team. | |
PARENT_MESSAGE_ID | NUMBER | 18 | Id of the message that the user is replying to. The value is null for the first message within a thread | ||
CREATION_DATE | TIMESTAMP | Yes | Who column: indicates the date and time of the creation of the row. | ||
CREATED_BY | VARCHAR2 | 64 | Yes | Who column: indicates the user who created the row. | |
LAST_UPDATE_DATE | TIMESTAMP | Yes | Who column: indicates the date and time of the last update of the row. | ||
LAST_UPDATED_BY | VARCHAR2 | 64 | Yes | Who column: indicates the user who last updated the row. | |
LAST_UPDATE_LOGIN | VARCHAR2 | 32 | Who column: indicates the session login associated to the user who last updated the row. | ||
OBJECT_VERSION_NUMBER | NUMBER | 9 | Yes | Used to implement optimistic locking. This number is incremented every time that the row is updated. The number is compared at the start and end of a transaction to detect whether another session has updated the row since it was queried. |
Foreign Keys
Table | Foreign Table | Foreign Key Column |
---|---|---|
PON_THREAD_MESSAGES | pon_threads | THREAD_ID |
PON_THREAD_MESSAGES | per_persons | FROM_PERSON_ID |
PON_THREAD_MESSAGES | hz_parties | FROM_PARTY_ID |
PON_THREAD_MESSAGES | hz_parties | FROM_TRADING_PARTNER_ID |
PON_THREAD_MESSAGES | pon_thread_messages | PARENT_MESSAGE_ID |
pon_thread_messages | pon_thread_messages | PARENT_MESSAGE_ID |
pon_thread_message_recipients | pon_thread_messages | MESSAGE_ID |
Indexes
Index | Uniqueness | Tablespace | Columns |
---|---|---|---|
PON_THREAD_MESSAGES_N1 | Non Unique | Default | THREAD_ID |
PON_THREAD_MESSAGES_N2 | Non Unique | Default | PARENT_MESSAGE_ID |
PON_THREAD_MESSAGES_U1 | Unique | Default | MESSAGE_ID |