npx prisma init --datasource-provider sqlite
-
Open the package.json of your project
-
Install the required dependencies by running:
npm i -D tsx
-
Add the following example to it:
"prisma": {
"seed": "tsx prisma/seed.ts"
}
Seeding process automatically start with first migration.
We should run only 1 instance of PrismaClient