Skip to content
Client OS
Menu

Feature

Postgres and Drizzle

Drizzle schemas and migrations, a local Supabase stack, and backup and restore scripts.

packages/db holds the Drizzle client, the identity schema, the clientos schema and the migrations. `pnpm db:migrate` and `pnpm db:seed` apply them, and CI proves the migrations apply cleanly to an empty Postgres.

Locally, `pnpm supabase:start` runs Postgres, Auth and Storage in Docker on their own port block, so the stack does not collide with other projects. scripts/db-backup.sh and scripts/db-restore.sh dump and reload the data schemas.