db: drizzle schema matching spec 02, initial migrations, settings service

Migration 0000 enables citext; 0001 creates all 39 tables. DB tests use a
throwaway database per file (TEST_DATABASE_URL, derived from .env in dev,
a postgres service in CI). Decision 0002: pg driver and @fastify/cookie.

Task: M1-T1
This commit is contained in:
iamdoubz committed 2026-10-17 15:04:18 -05:00
1 parent 63a03b4185
commit 15b8a20751
29 files changed
+6649 -25

No files matched your search

+11
View File
@@ -8,6 +8,17 @@ on:
jobs:
check:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:18-alpine
env:
POSTGRES_USER: selfphoneng
POSTGRES_PASSWORD: ci
POSTGRES_DB: selfphoneng
options: >-
--health-cmd "pg_isready -U selfphoneng" --health-interval 5s --health-retries 20
env:
TEST_DATABASE_URL: postgres://selfphoneng:ci@postgres:5432/selfphoneng
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4 # version comes from package.json "packageManager"