LostChurn Docs
Architecture

Database Schema Tree

Visual tree of all 102 SpacetimeDB tables grouped by domain, with primary relationships.

Database Schema Tree

LostChurn's SpacetimeDB module contains 102 tables organized across 14 domains. The mindmap below shows every table grouped by its functional area.

Table Hierarchy

Domain Relationship Map

The diagram below shows how the 14 domains connect through foreign-key relationships:

Table Counts by Domain

DomainTablesKey Tables
Merchant & Config7merchant, integration, api_key
Customer6customer, customer_health_score
Payment & Decline4payment_event, decline_code_map
Recovery Pipeline10recovery_state, retry_attempt, failure_prediction
Campaign & Enrollment6campaign, campaign_enrollment, template
Cancel & Win-back10cancel_flow_session, exit_interview_session, winback_campaign
Email & Deliverability7email_provider_config, email_suppression, sender_domain
Webhook & Queues12webhook_delivery, email_queue, retry_execution_queue
Analytics & Reporting7analytics_rollup, cohort_snapshot, industry_benchmark
Routing & Optimization5routing_rule, routing_statistics, cascade_rule
A/B Testing & MAB4ab_test, mab_arm_state
CRM & Integrations7crm_sync_log, shopify_connection, slack_connection
AI & LLM3llm_prompt_template, llm_call_log
Admin & Compliance10audit_log, data_export_job, gdpr_domain_cleanup
Total102

On this page