Skip to content

Databases

This page covers persistent stores: relational, document, graph, time-series, and search engines. For embeddings see Vector-Databases.md. For ephemeral / queue-style stores see Caching-Queues-Realtime.md. For object/blob storage see Object-Storage.md.

Portfolio map

Engine Apps Role
PostgreSQL 22 of 28 Default relational DB. 12 of those use the pgvector extension (GoGreen Verify runs the pgvector image but has no vector column).
MySQL / MariaDB 4 HouseKey (MySQL 8.0), VotigoPro (MariaDB 10.4 in compose), Maximus Pet Store and Pecos River Traders (MySQL 8.0).
SQLite 1 Embedded — Go Green Transit API (better-sqlite3).
Neo4j 2 Graph: OpenSentinel, AutoDiag AI.
InfluxDB 1 (optional) Time-series: AutoDiag AI sensor data.
Elasticsearch 1 (optional) AutoDiag AI optional search profile.
Meilisearch 1 Search: BidIt listings.
ClickHouse 0 Not used.
MongoDB 0 Not used.

The five non-Postgres products are Go Green Transit (SQLite); HouseKey, Maximus Pet Store and Pecos River Traders (MySQL); and VotigoPro (MariaDB).


PostgreSQL

What it is. Open-source relational database. ACID, strong SQL standard, JSONB, full-text search (tsvector), array types, partial indexes, materialized views, logical replication.

Why we use it. It does too many things well — transactional CRUD, JSON storage, full-text search, vectors (via pgvector), simple analytics. One database = one operational story.

Versions seen. 15, 16 and 17 (pgvector images pgvector/pgvector:pg15, pg16, pg17; DOC-AI runs 16.15).

Used in: - Toolbelt Handyman — pg15 + pgvector. - SuperCabs — pg16 + PostGIS 3.4, 47 Prisma models. - BidIt — pg16, with Meilisearch and Redis alongside. - Workflow Hub — pg17 + pgvector. - Sourcing AI — pg16 + pgvector. - DOC-AI — pg16.15, with Qdrant 1.17.1 and Redis 7.4. - Marketing AI — pg16 + pgvector, 93 tables and 39 migrations. - GoGreen Verify — pg15 on the pgvector image (0.8.7), no embedding column found in code. - GameTrakker — pg16. - Do Me A Ditty — pg16 (postgres:16-alpine). Writers Room has no database of its own; it uses the Workflow Hub's. - GoGreen Seller AI — pg16 + pgvector (PgBouncer overlay available). - AutoDiag AI — pg16, with Redis, Neo4j 5, and optional InfluxDB 2 / Elasticsearch / Pinecone. - OpenSentinel — pg16 + pgvector, with Neo4j 5 and Redis 7. - AI Concierge — pg16, with Qdrant 1.12.5. - SmartForms — pg16, embeddings and documents as JSONB. - Sell Me A Pen — pg15, embeddings as JSONB (no pgvector). - APEX Sales Training — pg15 + pgvector. - Recruiting AI — pg15 + pgvector, 135 Prisma models. - PoligoPro — pg15 + pgvector, 31 models. - GGPI website — pg16 + pgvector, 58 models. - Tutor AI — pg15 on the pgvector image (pgvector/pgvector:pg15), 78 Prisma models, per-student memory and RAG chunks in vector(1536) columns. - Jarvis (Tauri) — pg16 on the pgvector image (pgvector/pgvector:pg16, host port 5455) via sqlx, with a memories.embedding vector(1536) column. Jarvis (Electron) has no database.

Notable patterns: - pgvector extension (12 apps: Toolbelt Handyman, Workflow Hub, Sourcing AI, Marketing AI, Seller AI, OpenSentinel, APEX, Recruiting AI, PoligoPro, GGPI website, Tutor AI, Jarvis (Tauri)) — see Vector-Databases.md. - PostGIS — SuperCabs uses PostGIS 3.4 for rider/driver geospatial queries. - PgBouncer — Seller AI ships a PgBouncer overlay for connection pooling. - asyncpg — Python async driver used in AutoDiag AI, DOC-AI and SmartForms. - pg + Prisma / Drizzle — TypeScript apps (Prisma in 13, Drizzle in 3); Marketing AI's Go services use pgx.


MySQL / MariaDB

What it is. The other major open-source relational DB. Looser type system than Postgres but ubiquitous in the PHP/WordPress world.

Used in: - HouseKey — MySQL 8.0 (host port 3310, phpMyAdmin on 8280), Sequelize + mysql2, RAG data kept as JSON in MySQL. - VotigoPro — Laravel with Eloquent; compose runs mariadb:10.4 (docs say MySQL 8.0, CI uses MySQL 8.0), embeddings in a JSON column, plus Redis for the queue worker. - Maximus Pet Store — Laravel 12 with Eloquent across a storefront, an API and an admin site; mysql:8.0 in compose (host port 3308); cache, queue and sessions on the database driver. PHPUnit runs the storefront suite on in-memory SQLite. - Pecos River Traders — same three-app Laravel layout; mysql:8.0 (host port 3307) with a phpMyAdmin container (8380); cache, queue and sessions on the database driver.

MariaDB note. VotigoPro's compose file is the only MariaDB instance — fully MySQL-compatible at the app level.

phpMyAdmin is run as a Docker service for these apps to give the team a web SQL UI.


SQLite

What it is. Single-file embedded database. No server, no port, no auth — just a file. ACID via WAL mode.

Why we use it. When the deployment unit is a single binary or a small Docker image and you don't need concurrency.

Used in: - Go Green Transit API — better-sqlite3 ^11, no ORM.

Tradeoffs. No multi-writer concurrency (one process at a time). File-based backups are trivial; multi-machine replication is not.


Neo4j

What it is. Native graph database. Cypher query language. Strong on multi-hop traversal — "friends of friends," "documents that reference documents that reference X," "ownership chains."

Used in: - OpenSentinel — Neo4j 5 alongside Postgres + pgvector and Redis 7, as the knowledge graph. - AutoDiag AI — Neo4j 5 for the vehicle / part / fault knowledge graph behind the diagnostic engine.

Tradeoffs. Excellent for graph queries, awkward for everything else. Don't replace Postgres with it — sit it next to Postgres.


InfluxDB

What it is. Time-series database. Built for high-cardinality, time-stamped data — metrics, sensor readings, telemetry.

Used in: AutoDiag AI (optional InfluxDB 2) — vehicle sensor data over time (OBD-II readings).


ClickHouse (not used in portfolio)

What it is. Columnar OLAP database. Petabyte-scale aggregations in seconds. Not a transactional DB.

Not used in the portfolio — covered for comparison. Older notes listed Workflow Hub as a ClickHouse user; its fact sheet shows Postgres + pgvector, Redis and MinIO only.


MongoDB (not used)

What it is. Document database. Schema-less JSON-like documents, flexible querying.

Why not used. Postgres JSONB covers the document use cases without giving up SQL or transactions. The portfolio explicitly chose Postgres-monolith over polyglot persistence.


Elasticsearch / OpenSearch (optional in AutoDiag AI only)

What it is. Search-first engines. Lucene-based, BM25 by default, dense_vector field for ANN, aggregations, faceting.

Used in: AutoDiag AI, as an optional (profile-gated) component. Everywhere else, BM25-style search is implemented in Postgres tsvector or in app code; the portfolio doesn't have a corpus large enough to need a dedicated search cluster.


Meilisearch

What it is. Typo-tolerant search engine with a simple HTTP API; instant-search for product-style catalogs.

Used in: BidIt — Meilisearch 1.10 in production (1.7 in dev) for listing search, next to Postgres and Redis.

Typesense / Algolia are not used.


DuckDB (not used)

What it is. SQLite-style embedded analytical database. Reads Parquet / CSV / Arrow directly. Great for ad-hoc analytics in a notebook.

Why not used. The portfolio doesn't run notebook-style analytics; the same ad-hoc queries happen against Postgres directly.


Migrations

Tool Apps Notes
Prisma Migrate / db push 16 Default for TS apps (GameTrakker, GGPI website and Tutor AI push the schema directly).
Drizzle Kit 3 Workflow Hub (82 migrations), AI Concierge, OpenSentinel.
Alembic 3 Python — AutoDiag AI, SmartForms, DOC-AI.
Laravel Migrations 3 VotigoPro, Maximus Pet Store, Pecos River Traders.
Plain SQL migrations 3 Marketing AI (39), HouseKey, Jarvis (Tauri) (SQL files in src-tauri/migrations, run through sqlx).

Go Green Transit's SQLite schema is created by the API itself.


Backup posture

  • Postgres / MySQL — pg_dump / mysqldump to MinIO or to local disk on the IONOS VPS.
  • SQLite — file copy is the backup. WAL means stop-the-world isn't required.
  • MinIO — versioning enabled in production deployments.
  • Documented in Integrations_Audit.md and per-app CLAUDE.md — full DR is per-app, not centralized.

Decision guide

Greenfield app, not WordPress?           Postgres (+ pgvector if AI).
Already on WordPress / Laravel legacy?   MySQL or MariaDB.
Need multi-hop graph queries?            Neo4j alongside Postgres.
Time-series / sensor metrics?            InfluxDB.
Product-catalog search with typos?       Meilisearch.
Single-binary / desktop deployment?      SQLite.
"Should we use MongoDB?"                 No — Postgres JSONB handles it.
"Should we use Elasticsearch?"           Only as an optional add-on (AutoDiag AI); tsvector + pgvector suffice elsewhere.