This is a repo for testing sharing one prisma schema between multiple microservice repos via git submodules. The main repo is here.
- Run
yarn install
to install dependencies - Run
git submodule update --init
to initialize the subrepo "prisma" (which holds the schema) - Copy
.env.example
to.env
and fill in the DB string - Run
yarn run prisma:generate
to generate prisma client
cd prisma
(into the submodule)- Fetch and checkout commit you want, or pull origin main
cd ..
(back to service repo)- Commit
/prisma
(this will just update the commit reference in this repo)