SQL
SQL
Management Portal
This document outlines the comprehensive SQL database schema for the Trustt AI
Management Portal, designed to support user management, campaign orchestration, customer
engagement, analytics, and third-party integrations.
2. Templates Table
Holds pre-defined campaign templates.
3. Campaigns Table
Manages marketing/outreach campaigns.
4. Campaign Configurations
Normalized table for detailed campaign settings.
8. Calls Table
Tracks call history, status, and escalations.
9. Documents Table
Stores reference materials linked to campaigns.
16. Indexes
Improves query performance across key tables.
Additional Notes
● JSONB Fields: Ideal for flexible, schema-less data like configs, transcripts, and
credentials.
● Audit Fields: Most tables track creation and update timestamps for traceability.
● Soft Deletion: is_deleted used for retaining data without actual removal.
● Referential Integrity: Enforced using foreign keys with cascade rules where needed.
● Cross-DB Compatibility: