Pinntag ERD · pinntagAI + pinntagBackend

pinntagAI DB pinntagBackend DB cross-service ref ⋔ polymorphic (refPath)

Pinntag platform — entity relationship diagram

Two Node.js services share one data universe: pinntagBackend (NestJS + Mongoose) owns the canonical platform data, while pinntagAI (Express + Mongoose) keeps its own database for AI state and telemetry and opens a second connection into the backend database. Every violet-to-teal link below is a bare ObjectId crossing that service boundary — never a populatable in-database ref.

0pinntagAI collections
0backend collections
0references
0cross-service refs

Core relationship graph

Hub entities only — hover a node to trace its edges; dashed amber = cross-service ObjectId. Full inventory below.

Schema notes & quirks found during extraction

Surfaced while reading every model file — worth knowing before trusting a ref or an index.