Database
Update schema
To update your database schema, you can simply edit the schema.prisma
file in the /packages/database
library. You can find more information about the Prisma schema file here.
To add an entity for "posts" for example, you can add the following to your schema:
Push your changes to the database
To push your changes to the database, you can run the following command:
Generate prisma client
After you have pushed your schema changes, you need to re-generate the prisma client. You can do this by running the following command: