#SQLite schema by domain
On this page
Accounts and directoryActivity and statisticsPeers and host sessionsRoom metadata, plans, and artifactsRuntime hosts and workspacesDelivery queue and messagesProvider continuityRoom inbox and attentionTasks, boards, and work itemsUsage and costMigration orderSources: crates/jam-store/src/migrations/schema.golden, crates/jam-store/src/sqlite.rs.
The encrypted store has 76 tables and 88 migrations. Table grouping into domains is editorial; the schema itself has no such grouping. Solid ERD edges are SQL REFERENCES constraints (38 in total). Most cross-table links in this store are application-enforced by matching ID columns and do not appear as edges. Migration order is the MIGRATIONS array in sqlite.rs, not the file-name prefix, which repeats.
#Accounts and directory
#Activity and statistics
#Peers and host sessions
#Room metadata, plans, and artifacts
#Runtime hosts and workspaces
References into other domains: workspace_exports.provider_checkpoint_id → provider_checkpoints.
#Delivery queue and messages
References into other domains: native_projection_outbox.profile, scope, room → work_snapshots, room_system_messages.profile → accounts.
#Provider continuity
References into other domains: provider_checkpoint_payload_deletions.runtime_host_id → runtime_hosts, provider_checkpoint_sessions.runtime_session_id → runtime_host_sessions, provider_checkpoints.runtime_host_id → runtime_hosts, provider_continuity_resets.source_runtime_host_id → runtime_hosts, provider_resume_observations.runtime_host_id → runtime_hosts.
#Room inbox and attention
#Tasks, boards, and work items
#Usage and cost
#Migration order
| # | File |
|---|---|
| 1 | 0001_init.sql |
| 2 | 0002_queue.sql |
| 3 | 0003_events.sql |
| 4 | 0004_rollups.sql |
| 5 | 0005_room_org.sql |
| 6 | 0006_stats.sql |
| 7 | 0007_session_ledger.sql |
| 8 | 0008_usage_archive.sql |
| 9 | 0009_activity_log.sql |
| 10 | 0010_session_presence.sql |
| 11 | 0011_work_item_timestamps.sql |
| 12 | 0012_room_plan.sql |
| 13 | 0013_usage_provider_attribution.sql |
| 14 | 0014_room_task_assignment_agent_id.sql |
| 15 | 0015_account_identity.sql |
| 16 | 0016_host_session_runtime.sql |
| 17 | 0017_account_identity_names.sql |
| 18 | 0018_settings.sql |
| 19 | 0019_host_session_thread_settings.sql |
| 20 | 0020_room_task_creator.sql |
| 21 | 0021_task_attribution.sql |
| 22 | 0022_room_titles.sql |
| 23 | 0023_artifacts.sql |
| 24 | 0024_account_auth_kind.sql |
| 25 | 0025_host_session_sandbox.sql |
| 26 | 0026_host_session_codex_lineage.sql |
| 27 | 0027_runtime_session_identity.sql |
| 28 | 0028_native_projection_outbox.sql |
| 29 | 0029_room_message_cache.sql |
| 30 | 0030_room_inbox_state.sql |
| 31 | 0031_room_history_cursor.sql |
| 32 | 0032_room_recovery_status.sql |
| 33 | 0033_work_item_task_payload.sql |
| 34 | 0034_work_lane_archive.sql |
| 35 | 0035_runtime_lane_key.sql |
| 36 | 0036_task_lane_authoritative.sql |
| 37 | 0037_attention.sql |
| 38 | 0038_attention_retention.sql |
| 39 | 0039_attention_sequence_watermarks.sql |
| 40 | 0040_task_component_refs.sql |
| 41 | 0041_room_system_messages.sql |
| 42 | 0042_room_inbox_accepted_question_answers.sql |
| 43 | 0043_room_inbox_accepted_question_replies.sql |
| 44 | 0044_peer_operator_instructions.sql |
| 45 | 0045_peer_identity_class.sql |
| 46 | 0046_account_directories.sql |
| 47 | 0047_account_instance_ownership.sql |
| 48 | 0046_artifact_origin.sql |
| 49 | 0048_host_session_managed_workspace.sql |
| 50 | 0049_host_session_last_seen.sql |
| 51 | 0050_host_session_provider_session_id.sql |
| 52 | 0051_host_session_window_pid.sql |
| 53 | 0052_room_task_history.sql |
| 54 | 0049_host_session_claude_options.sql |
| 55 | 0053_runtime_config_generations.sql |
| 56 | 0045_runtime_host_workspace_foundation.sql |
| 57 | 0046_runtime_host_compatibility.sql |
| 58 | 0047_provider_checkpoints.sql |
| 59 | 0048_workspace_repository_inventory.sql |
| 60 | 0049_workspace_operation_journal.sql |
| 61 | 0050_workspace_exports.sql |
| 62 | 0051_runtime_host_cleanup_operations.sql |
| 63 | 0052_workspace_clone_operations.sql |
| 64 | 0053_workspace_branch_operations.sql |
| 65 | 0054_host_session_git_commit_policy.sql |
| 66 | 0055_usage_observations.sql |
| 67 | 0056_usage_reconciliation.sql |
| 68 | 0057_usage_counters.sql |
| 69 | 0058_usage_cost_projections.sql |
| 70 | 0059_usage_capture_failures.sql |
| 71 | 0060_usage_cost_projection_archive_scan.sql |
| 72 | 0061_usage_platform_deliveries.sql |
| 73 | 0062_usage_archive_pricing_provenance.sql |
| 74 | 0063_usage_archive_token_categories.sql |
| 75 | 0064_provider_continuity_resets.sql |
| 76 | 0065_provider_resume_observations.sql |
| 77 | 0066_host_session_requested_network_profile.sql |
| 78 | 0067_host_session_developer_network_destinations.sql |
| 79 | 0068_host_session_local_platform_bridge.sql |
| 80 | 0069_provider_checkpoint_payload_deletions.sql |
| 81 | 0054_account_directory_profile_backfill.sql |
| 82 | 0054_permission_attention_links.sql |
| 83 | 0054_artifact_remote_id.sql |
| 84 | 0055_queue_attachment_ids.sql |
| 85 | 0070_runtime_host_session_workspace_kind.sql |
| 86 | 0071_account_directory_observe_only.sql |
| 87 | 0072_room_task_operation_journal.sql |
| 88 | 0073_agent_teams.sql |