Common Query Patterns
-- Inspect any table structure
SELECT *
FROM conversations
LIMIT 1;
-- Count records by type
SELECT
COUNT(*) as total,
COUNT(DISTINCT user_id) as unique_users,
COUNT(DISTINCT service_id) as unique_services
FROM conversations
WHERE org_id = 'your-org-id';
Last updated
Was this helpful?