diff --git a/nodeJS/orms/prisma_orm.md b/nodeJS/orms/prisma_orm.md index 493cf3eb92c..c4b57a4ca3f 100644 --- a/nodeJS/orms/prisma_orm.md +++ b/nodeJS/orms/prisma_orm.md @@ -118,6 +118,14 @@ You might have a complex query that you just are unable to get right via the Pri Prisma migrate is a tool that helps you perform database migrations. You won't be using it a whole ton in the curriculum, but it's good to be aware of it. When you decide to change the schema in any way, you run a Prisma migration to apply the schema changes to the database. These changes are tracked in a `migrations` folder in your codebase. +
+ +#### ORM Limitations + +In the [Using Postgres](https://www.theodinproject.com/lessons/nodejs-using-postgresql) lesson, we learned about Identity columns. Postgres recommends the use of Identity columns, as they comply with the SQL standard. Prisma, however, does not support these columns, and will create Postgres specific [Serial Types](https://www.postgresql.org/docs/16/datatype-numeric.html#DATATYPE-SERIAL) instead. This most likely will not affect your projects, but it can be important to keep in mind. For a short description on the difference between Serial and Identity, see this [Stackoverflow answer](https://stackoverflow.com/a/55300741/1882858). + +
+ ### Assignment