Typing Role

I am using an enum from Prisma

but I cant pass that enum as a type for additional fields

  user: {
    additionalFields: {
      role: {
        type: "string",
        required: false,
        input: false,
      },
    },
  },


(see image)

is there a way to have it typed as the values of my enum instead of as 'string' ?
image.png
Was this page helpful?