Error when signup and save data to profiles table

in my project, I am going to implement a multi-tenant feature.
but when I signup as a student, I got this error in browser console.
"there is no unique or exclusion constraint matching the ON CONFLICT specification"

so the user data is saved correctly in auth.users table but did not save in public profiles table
I attached error and the code section screenshot.
image.png
image.png
Was this page helpful?