Is it possible to set up PSQL triggers in Prisma? ...
# orm-help
c
Is it possible to set up PSQL triggers in Prisma? I have an entity (lets say Posts). Posts can have many Likes. If a Post receives 500 likes, the "popular" boolean should be set to true. I also want it to increment a "likeCount" integer on that Post too.
r
@Copium Dealer 👋 If you’re using Prisma Migrate, I think adding the trigger in the migration
.sql
files should do the trick.