ak4zh
02/10/2022, 7:33 PMpublic.organizations
with created link to auth.users
4) All columns that contains organizations data contains two column user_id
and organization_id
5) RLS policies check if user is a member of the organization using auth.users.raw_user_meta_data
garyaustin
02/10/2022, 8:20 PMgaryaustin
02/10/2022, 8:22 PMak4zh
02/11/2022, 4:39 AMak4zh
02/11/2022, 4:47 AMraw_user_meta_data
can be updated by the user, raw_app_meta_data
requires the admin role just have one caveat of user will still having access even if access is removed at db level until existing token is expired.
I think this will work.silentworks
02/11/2022, 8:56 AM