Skip to main content

Overview

The database is organized by domain prefix. Shared infrastructure has no prefix or uses system_.

Table Organization

Shared Infrastructure

Tables used across all products:
TablePurposeRows
usersAll authenticated users0
organizationsMulti-tenant company accounts4
user_rolesRBAC permissions0
user_sessionsSession tracking0
user_segmentsBehavioral cohorts4
platformsSocial/distribution platform registry11
ai_model_configLLM routing (which model for which task)7
micro_segmentsGranular user groupings4

System Tables

Infrastructure and operational tables:
TablePurposeRows
system_checkpointsState snapshots for recovery9
system_circuit_breakersFailure handling10
system_api_keysExternal API key storage0
system_ai_usageToken/cost tracking0
system_state_historyAudit log0

Publisher Tables

Blog network and content generation:
TablePurposeRows
publisher_verticalsIndustry categories6
publisher_ig_sourcesInstagram accounts to scrape25
publisher_ig_postsScraped IG content66
publisher_ig_commentsPost comments0
publisher_ig_hashtagsHashtag registry0
publisher_ig_post_hashtagsPost-hashtag junction0
publisher_ig_post_metricsEngagement data0
publisher_postsGenerated blog articles0
publisher_post_analyticsTraffic, engagement0
publisher_post_tagsArticle tagging0
publisher_post_viator_productsAffiliate product links0
publisher_repurposed_contentCross-platform variants0
publisher_scrape_logsScraping audit trail0
publisher_scrape_errorsError tracking0
content_analysisAI content analysis0
content_platform_scoresPlatform-specific scoring0
content_recommendationsAI suggestions0
content_sourcesContent origin tracking0
content_templatesReusable templates0
viator_productsTravel affiliate products0
viator_click_trackingAffiliate click/conversion0

Platform Tables

Creator tools and licensing:
TablePurposeRows
creator_profilesCreator accounts0
creator_licensesContent available for licensing0
creator_license_purchasesTransaction records0
creator_payoutsPayment history0
iris_verification_logsBiometric verification0
voice_profilesVoice clone authorizations0
wtp_scoresWillingness-to-pay scores0
wtp_scoring_rulesScoring algorithm config12
lead_scoresProspect qualification0

Agency Tables

Client services:
TablePurposeRows
agency_clientsClient companies0
agency_projectsScoped deliverable projects0
agency_deliverablesIndividual work items0
agency_retainersOngoing service agreements0
service_order_projectsProductized service purchases0

Store Tables

Shopify integration:
TablePurposeRows
shopify_productsSynced product catalog0
shopify_ordersOrder records0
shopify_customersCustomer data0
order_fulfillment_triggersAutomation triggers0

Jarvis Tables

Voice assistant:
TablePurposeRows
jarvis_conversationsVoice assistant sessions10
jarvis_messagesMessage history19
jarvis_tool_logsMCP tool execution records8
jarvis_embeddingsSemantic search vectors0
jarvis_user_contextPersistent user memory0

Growth

Rapid prototyping and experimentation:
TablePurposeRows
saas_experimentsRapid SaaS prototype testing0

Key Relationships

users
  └── organizations (many-to-one)
  └── user_roles (many-to-many)
  └── creator_profiles (one-to-one)
  └── audience_events (one-to-many)

publisher_verticals
  └── publisher_posts (one-to-many)
  └── publisher_ig_sources (one-to-many)

publisher_posts
  └── publisher_post_analytics (one-to-one)
  └── publisher_post_viator_products (one-to-many)

creator_profiles
  └── creator_licenses (one-to-many)
  └── creator_payouts (one-to-many)

agency_clients
  └── agency_projects (one-to-many)
  └── agency_retainers (one-to-many)

Full Table Schemas

Detailed column-level documentation