switch function in drizzle

I'm following the "Add Clerk Authentication & Stripe Payments to your NextJS tRPC Application" tutorial. The tutorial uses T3 app + Prisma + Clerk.

I've used drizzle for my T3 app and need help converting this switch function written in Prisma-speak to Drizzle-speak.
image.png
Was this page helpful?