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
Ryan
06/24/2021, 4:55 AM
@Copium Dealer 👋
If you’re using Prisma Migrate, I think adding the trigger in the migration