DocumentTag
Tag for categorizing and searching documents and content. Extends Tag with document-specific properties.
Properties
Includes inherited properties from Tag
| Property | Type | Mode | Description | Required | Source |
|---|---|---|---|---|---|
| name | string | stored | Name or label of the tag Example: | Required | Tag |
| slug | string | stored | URL-friendly version of the tag name for routing and APIs Example: | Optional | Tag |
| category | string | stored | Category or group for the tag (e.g., 'segment', 'industry', 'priority', 'status') Example: | Optional | Tag |
| description | string | stored | Detailed description of what this tag represents Example: | Optional | Tag |
| color | string | stored | Color code for visual representation in UI (hex color) Example: | Optional | Tag |
| icon | string | stored | Optional icon identifier for the tag Example: | Optional | Tag |
| isActive | boolean | stored | Whether this tag is currently active and available for assignment Example: | Optional | Tag |
| sortOrder | number | stored | Display order for sorting tags in UI Example: | Optional | Tag |
| document | Document | stored | Reference to the document being tagged | Required | DocumentTag |
| assignedAt | DateTime | stored | Timestamp when the tag was assigned to this document Example: | Required | DocumentTag |
| assignedBy | User | stored | User who assigned the tag to this document | Optional | DocumentTag |