Current section: Seeding Data 4 exercises

Configuring Prisma for Seed Script Execution


00:00 So we've got our seed script that we made earlier to insert some images in the database. I want you to update the seed script so that it works without having anything in the database. In fact, I want it to delete everything in the database before we actually load new things in the database.

00:17 This way we can just do like a refresh of our database and all of the data. We're going to stick in a couple pieces of data here, including the images and things, and then I want you to reset the database to be whatever the seed script generates. So that is your task for this one. Have a good time.