Skip to main content

Participants Table

Description: Stores participants involved in each ticket.

Table Definition:

CREATE TABLE Participants (
id INT PRIMARY KEY,
ticketId INT NOT NULL,
name VARCHAR(255) NULL,
type VARCHAR(50) NOT NULL,
identifier VARCHAR(255) NULL,
departmentIdentifier VARCHAR(255) NULL,
displayName VARCHAR(255) NULL,
protocolType VARCHAR(50) NULL,
subProtocolType VARCHAR(50) NULL,
isActive BOOLEAN NOT NULL DEFAULT TRUE,
isDeleted BOOLEAN NOT NULL DEFAULT FALSE,
contactId VARCHAR(255) NULL,
userName VARCHAR(255) NULL,
FOREIGN KEY (ticketId) REFERENCES Ticket(id)
);

Fields:

Field NameData TypeNullabilityConstraintsDescription
idINTNOT NULLPRIMARY KEYUnique identifier for each participant.
ticketIdINTNOT NULLFOREIGN KEYReferences Ticket(id).
nameVARCHAR(255)NULLName of the participant.
typeVARCHAR(50)NOT NULLType of participant (e.g., "User", "Bot").
identifierVARCHAR(255)NULLUnique identifier of the participant.
departmentIdentifierVARCHAR(255)NULLDepartment identifier.
displayNameVARCHAR(255)NULLDisplay name of the participant.
protocolTypeVARCHAR(50)NULLProtocol type used by the participant.
subProtocolTypeVARCHAR(50)NULLSub-protocol type, if applicable.
isActiveBOOLEANNOT NULL, DEFAULT TRUEIndicates if the participant is active.
isDeletedBOOLEANNOT NULL, DEFAULT FALSEIndicates if the participant is deleted.
contactIdVARCHAR(255)NULLContact ID associated with the participant.
userNameVARCHAR(255)NULLUsername of the participant.