Skip to main content

Schema Statistics

Total Tables

127 custom tables

Public Schema

111 product tables

System Schema

14 infrastructure tables

Multi-Tenant

42 with tenant_id

Tables by Domain

DomainTablesDescription
System Infrastructure10Circuit breakers, checkpoints, AI usage tracking
Events1Transactional outbox, audit logs
Content Engine12Content sources, analysis, generation pipeline
Distribution4Voice profiles, templates, distribution metrics
Audience Intelligence4Profiles, events, micro-segments, WTP scoring
AI Visibility10Bot activity tracking, citation discovery
Publisher5Blog network, verticals, IG sources, posts
Platform (UCI)4Creator profiles, licenses, verification
Agency4Clients, projects, retainers
Store4Shopify products, orders, sync

Schema Security

SchemaAccess LevelRLS
publicauthenticated, anon, service_roleRequired on every table
systemservice_role ONLYNone (no user access)
eventsservice_role ONLYNone (append-only)
Never grant user access to system or events schemas. Create filtered VIEWs in public if needed.

Naming Conventions

PrefixDomainExample
aiv_AI Visibilityaiv_bot_activity, aiv_citations
publisher_Publisherpublisher_posts, publisher_verticals
creator_Platformcreator_profiles, creator_licenses
agency_Agencyagency_clients, agency_projects
shopify_Storeshopify_products, shopify_orders
jarvis_Jarvisjarvis_conversations, jarvis_messages
system.Infrastructuresystem.circuit_breakers, system.ai_usage

Auto-generated from agents/schema/SCHEMA.md. Run pnpm docs:sync-schema to update.