- Setup PostgreSQL using Docker or different tool
- Provide
DATABASE_URLto your.envfile (see.env.exampleas reference) - Push schema to fresh database
npx prisma db push - Generate prisma client:
npx prisma generate
- Familiarize with quick start documentation of Prisma
- Apply your changes to
prisma/schema.prisma - Create new migration file
npx prisma db migrate - Add new schema and migration files to the repository