Hi all - big fan of weweb/ supabase combo so far. everything has smooth sailing, but ive been stuck on this problem for a while
This project has 2 users roles (Advisors, Clients) with 2 dedicated registration forms.
Roles, UserRoles, UserProfile tables are all set up, which means its possible to manually allocate a User the correct role. My question is there a way to automate this? eg, When a user signs up through a Advisor-registration form/ Client-registration form, they are automatically assign those roles.
Considered a function/trigger in supabase to allocate role, but there seem to be no way to communicate which form the user registered from. I may be wrong, but this seems to indicate the workflow needs to be created on the app-side.
Any help/ pointers would be massively appreciated!