-
Notifications
You must be signed in to change notification settings - Fork 0
Seeder
Mathieu edited this page Jun 14, 2022
·
3 revisions
When the command npx prisma db seed is executed, the database will be seeded.
Seeds concerns two categories :
- Product Types
- Event Types
The following endpoint could create product-type.
/product-types/create
However we don't recommend you to do this because the cleanest way to add product type is to create a seeder or to improve the seeder file.
Seeder could be edited into this file : ./prisma/seed.ts.