Add admin page (WIP)

This commit is contained in:
Michael
2021-07-03 18:52:38 +02:00
parent 354d287e02
commit 2d4d2f71aa
4 changed files with 866 additions and 120 deletions

View File

@@ -71,4 +71,14 @@ CREATE POLICY "User can check their sub"
ON public.subscriptions
FOR SELECT USING (
auth.uid() = id
);
);
-- Create a table for admin
create table admin_list (
id uuid not null,
isadmin boolean,
primary key (id)
);
alter table admin_list enable row level security;