For starting out development and for testing purposes, it is nice to create some seed data that helps the developer continue from where they left off while at the same time allowing them to blow away all changes and start from that place again.
Prisma now has a db seed command, and the /prisma/seed.ts code looks straightforward.
Acceptance Criteria
[ ] yarn add -D ts-node to dependencies
[ ] create /prisma/seed.ts with sample users and spaces
https://www.prisma.io/docs/guides/prisma-guides/seed-database
For starting out development and for testing purposes, it is nice to create some seed data that helps the developer continue from where they left off while at the same time allowing them to blow away all changes and start from that place again.
Prisma now has a
db seed
command, and the/prisma/seed.ts
code looks straightforward.Acceptance Criteria
yarn add -D ts-node
to dependencies/prisma/seed.ts
with sample users and spacesyarn db:seed
command topackage.json