Update Supabase clients and refactor codebase
Refactored several Supabase client functions and updated them to use generics. Also, the '@kit/supabase-config' package was removed from the project and all references were replaced accordingly. The project's dependencies were updated as well, including the Supabase package which was upgraded to the latest version.
This commit is contained in:
2039
apps/web/supabase/migrations/20221215192558_schema.sql
Normal file
2039
apps/web/supabase/migrations/20221215192558_schema.sql
Normal file
File diff suppressed because it is too large
Load Diff
25
apps/web/supabase/migrations/20240319163440_roles-seed.sql
Normal file
25
apps/web/supabase/migrations/20240319163440_roles-seed.sql
Normal file
@@ -0,0 +1,25 @@
|
||||
-- We seed the role_permissions table with the default roles and permissions
|
||||
insert into public.role_permissions(
|
||||
role,
|
||||
permission)
|
||||
values (
|
||||
'owner',
|
||||
'roles.manage'),
|
||||
(
|
||||
'owner',
|
||||
'billing.manage'),
|
||||
(
|
||||
'owner',
|
||||
'settings.manage'),
|
||||
(
|
||||
'owner',
|
||||
'members.manage'),
|
||||
(
|
||||
'owner',
|
||||
'invites.manage'),
|
||||
(
|
||||
'member',
|
||||
'settings.manage'),
|
||||
(
|
||||
'member',
|
||||
'invites.manage');
|
||||
Reference in New Issue
Block a user