Skip to main content

๐Ÿ—ƒ๏ธ Database Schema

PulseHub uses 9 tables. All primary keys are UUID v4 strings (VARCHAR(36)). All tables use utf8mb4 charset for full Unicode support including emoji.


Table Overviewโ€‹

TableDescription
workspacesTop-level tenant
usersAdmin and agent accounts
channelsConnected channel integrations
contactsCustomers
conversationsThreads between contacts and workspace
messagesIndividual messages
automationsAutomation rules
automation_eventsAutomation trigger queue
webhook_eventsInbound webhook log
sse_eventsReal-time event queue

Entity Relationshipsโ€‹

workspaces
โ”‚
โ”œโ”€โ”€ users (workspace_id)
โ”œโ”€โ”€ channels (workspace_id)
โ”œโ”€โ”€ contacts (workspace_id)
โ”œโ”€โ”€ automations (workspace_id)
โ””โ”€โ”€ conversations (workspace_id)
โ”‚
โ”œโ”€โ”€ messages (conversation_id)
โ”œโ”€โ”€ channels (channel_id)
โ”œโ”€โ”€ contacts (contact_id)
โ””โ”€โ”€ users (assigned_agent_id)

For full table definitions with all columns and types, see the schema.sql file included in the distribution.