@wazobiatech/shared-database

v0.2.0

Published

Shared Prisma schema and generated client for the Postgres database used by broker-service and arke. broker-service remains the sole owner of migrations -- this package only ships the schema and a ready-to-use, pre-compiled client.

Downloads

18

Readme

@wazobiatech/shared-database

Shared Prisma schema and generated client for the Postgres database used by both broker-service and arke. Published to GitHub Packages so neither consumer has to hand-copy schema.prisma and regenerate its own client whenever the schema changes.

Ownership

  • broker-service remains the sole owner of migrations. prisma/schema.prisma in this package is a copy kept in sync with broker-service's schema, but migration files (prisma/migrations/) never live here.
  • arke only ever reads from the shared database -- it consumes this package purely for types and the generated PrismaClient, and never runs prisma migrate.

Publishing a new version

Whenever broker-service's prisma/schema.prisma changes:

  1. Copy the updated prisma/schema.prisma into this repo.
  2. Bump the version in package.json.
  3. npm publish (runs prisma generate + tsc via prepublishOnly).
  4. Bump the dependency version in both broker-service/package.json and arke/package.json, then npm install in each.

Registry

Published publicly on npmjs under the wazobiatech account/scope (npm publish, logged in as wazobiatech). The schema itself is not sensitive enough to warrant a paid private-package plan, so this is public like any other npm package -- installing it needs no auth.