Prisma schema: User.roles with simple string type

My work-around to simplify ‘User’ model and be able to just String type ‘roles’ attribute without creating another model for roles & relating both.
So eventually i can do: model User {… roles String} and assign string values with comma separated substrings like ‘admin, superuser, mrx’
I thought it might be of some use to others too :slight_smile:

api/src/lib/auth.js alternative getCurrentUser logic: