SVC_CHAT_MESSAGES

This table is used to store Chat Messages. References SVC_CHATS

Details

  • Schema: FUSION

  • Object owner: SVC

  • Object type: TABLE

  • Tablespace: Default

Primary Key

Name Columns

SVC_CHAT_MESSAGES_PK

MESSAGE_ID

Columns

Name Datatype Length Precision Not-null Comments
MESSAGE_ID NUMBER 18 Yes Auto-generated number and primary key for this table.
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.
CHAT_ROLE_CD VARCHAR2 30 Role of the person that posted the message (AGENT, END_USER).
CHAT_ID NUMBER 18 Yes Foreign key that references SVC_CHATS (CHAT_ID).
MESSAGE_TYPE_CD VARCHAR2 100 Yes The type of message as received from the Chat Service
POSTED_BY_PARTY_ID NUMBER 18 Foreign key that references HZ_PARTIES (PARTY_ID), the Party ID of the person who posted the message. This person can be an internal resource or a customer contact.
MESSAGE_CONTENT CLOB Content of the chat message. Null for system messages.
RICH_TEXT_FLAG VARCHAR2 1 Indicates whether the message content is in rich text format (Y or N).
VISIBILITY_CD VARCHAR2 30 Lookup code that indicates the audience of the message (ALL, NOT_END_USER).
MESSAGE_DATE TIMESTAMP Date the message was sent if the message was sent.
DELETED_FLAG VARCHAR2 1 Yes Indicates whether this message is logically deleted (Y or N).
MERCURY_WORK_ID NUMBER 18 Mercury Work Id, if it exists.

Foreign Keys

Table Foreign Table Foreign Key Column
SVC_CHAT_MESSAGES hz_parties POSTED_BY_PARTY_ID
SVC_CHAT_MESSAGES svc_chats CHAT_ID

Indexes

Index Uniqueness Tablespace Columns
SVC_CHAT_MESSAGES_F1 Non Unique Default POSTED_BY_PARTY_ID
SVC_CHAT_MESSAGES_F2 Non Unique Default CHAT_ID
SVC_CHAT_MESSAGES_PK Unique Default MESSAGE_ID