mirror of
https://github.com/fergalmoran/supanextail.git
synced 2026-01-15 13:05:19 +00:00
Add admin page (WIP)
This commit is contained in:
@@ -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;
|
||||
Reference in New Issue
Block a user