Skip to main content

Tags Table

Description: Stores detailed information about each tag.

Table Definition:

CREATE TABLE Tags (
id INT PRIMARY KEY AUTO_INCREMENT,
name VARCHAR(255) NOT NULL UNIQUE,
color VARCHAR(50) NULL,
allowAgent BOOLEAN NOT NULL DEFAULT TRUE,
allowBot BOOLEAN NOT NULL DEFAULT TRUE,
allowSuggestions BOOLEAN NOT NULL DEFAULT TRUE,
isDeleted BOOLEAN NOT NULL DEFAULT FALSE
);

Fields:

Field NameData TypeNullabilityConstraintsDescription
idINTNOT NULLPRIMARY KEY, AUTO_INCREMENTUnique identifier for each tag.
nameVARCHAR(255)NOT NULLUNIQUEName of the tag.
colorVARCHAR(50)NULLColor associated with the tag.
allowAgentBOOLEANNOT NULL, DEFAULT TRUEIndicates if agents can use the tag.
allowBotBOOLEANNOT NULL, DEFAULT TRUEIndicates if bots can use the tag.
allowSuggestionsBOOLEANNOT NULL, DEFAULT TRUEIndicates if tag allows suggestions.
isDeletedBOOLEANNOT NULL, DEFAULT FALSEIndicates if the tag is deleted (soft delete).