Prisma SQLite

how to insert data inside the a table in prisma sqlite for internal table which are used only for linking and the data never get's changed
3 Replies
Nurul
Nurul7d ago
Can you please elaborate? I didn't understand what you are trying to achieve
Papa Johns
Papa Johns6d ago
So like when an app start, there some default internal data that needs to be inserted in the database to use that while inserting other information which will be provided by users. I want to insert the default data in database so that I could use a find query that would provide all the data in that table prepopulated and I could use that information to manipulate my information
Nurul
Nurul6d ago
To me it looks like you are looking for seeding your database. Can you have a look at the guide here? https://www.prisma.io/docs/orm/prisma-migrate/workflows/seeding
Seeding | Prisma Documentation
Learn how to seed your database using Prisma ORM's integrated seeding functionality and Prisma Client
Want results from more Discord servers?
Add your server