๐๏ธ 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โ
| Table | Description |
|---|---|
workspaces | Top-level tenant |
users | Admin and agent accounts |
channels | Connected channel integrations |
contacts | Customers |
conversations | Threads between contacts and workspace |
messages | Individual messages |
automations | Automation rules |
automation_events | Automation trigger queue |
webhook_events | Inbound webhook log |
sse_events | Real-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.