Database error saving new user when using trigger

Hey, I'm using supabase and prisma and i'm having trouble with triggers. I have a handle_new_user function that's triggered whenever a user signs up and it's erroring and preventing you from signing up. posted pics of my function and user model. any help would be appreciated, ty!
image.png
image.png
Was this page helpful?