Entity Relationship Overview
The database uses foreign keys to maintain referential integrity across all business units.Core Relationships
User → Organization
User → Creator Profile
Publisher Relationships
Vertical → Sources → Posts
- Verticals define industry categories
- IG sources belong to verticals
- Scraped posts belong to sources
- Generated articles belong to verticals
- Analytics track article performance
- Viator products link articles to affiliate revenue
Content Analysis Chain
Platform Relationships
Creator → Licenses → Purchases
- Creators upload content
- Content becomes licensable
- Purchases track transactions
- Payouts track creator earnings
Verification Chain
Agency Relationships
Client → Projects → Deliverables
- Clients onboard
- Projects define scoped work
- Deliverables track individual items
- Retainers track ongoing relationships
Store Relationships
Products → Orders
Jarvis Relationships
Conversations → Messages → Tools
Cross-Product Joins
Publisher Posts → Store Products
Creator → User → Orders
Agency Client → Shopify Orders
Visual Diagram
Indexing Strategy
All foreign keys have indexes for JOIN performance:Full Table Reference
See all column definitions