Skip to content

Commit 1e593cb

Browse files
author
Guilherme Souza
committed
Add RLS
1 parent d91e11e commit 1e593cb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

supabase-init.sql

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,10 @@ create table logs (
1111
received_at timestamp with time zone default timezone('utc'::text, now()) not null,
1212
metadata jsonb
1313
);
14+
15+
alter table logs enable row level security;
16+
17+
create policy "Logs can be public inserted." on public.logs for insert with check (true);
18+
create policy "Logs can't be public read." on public.logs for select using (false);
19+
create policy "Logs can't be public updated." ON public.logs for update with check (false);
20+
create policy "Logs can't be public deleted." ON public.logs for delete using (false);

0 commit comments

Comments
 (0)