@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.prismain 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 runsprisma migrate.
Publishing a new version
Whenever broker-service's prisma/schema.prisma changes:
- Copy the updated
prisma/schema.prismainto this repo. - Bump the version in
package.json. npm publish(runsprisma generate+tscviaprepublishOnly).- Bump the dependency version in both
broker-service/package.jsonandarke/package.json, thennpm installin 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.