Skip to content

Database Setup

Database Setup

Documentation for database architecture, setup, migration, and backend evaluation.

Contents

Neon PostgreSQL (Primary Database)

  • Neon Migration Summary — Complete record of the D1 → Neon migration, including scope, decisions, schema, CI/CD, and cross-references
  • Neon Setup — Production configuration, Hyperdrive connection pooling, Prisma integration
  • Neon Branching — Automated branch-per-PR workflows via GitHub Actions
  • Migration Checklist — One-time D1 → Neon data migration steps and verification
  • Edge Cache Architecture — D1 as L1 edge cache with Neon as the primary store

Prisma ORM

Architecture & Evaluation

Quick Start

Terminal window
# One-command project setup (copies env templates, generates Prisma client)
deno task setup
# Or start a local Docker PostgreSQL
deno task db:local:up