Easy way to clear database?
Noob here. My schema is massive and I don't want to have to manually type in all of my model names + deleteMany().
Doing that is also painful because a lot of times you have to delete things in a certain order.
I'm using prisma db push instead of migrations.
Anyone have an easy ts code snippet that will just completely wipe my database so I can seed everything again?
Doing that is also painful because a lot of times you have to delete things in a certain order.
I'm using prisma db push instead of migrations.
Anyone have an easy ts code snippet that will just completely wipe my database so I can seed everything again?
