Skip to content
Mathieu edited this page Jun 14, 2022 · 3 revisions

Seeder

When the command npx prisma db seed is executed, the database will be seeded. Seeders concerns two categories :

  • Product Types
  • Event Types

Product 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.

Clone this wiki locally