-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathsupabase.sql
More file actions
34 lines (27 loc) · 744 Bytes
/
Copy pathsupabase.sql
File metadata and controls
34 lines (27 loc) · 744 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
drop table if exists public.tokens;
create table public.tokens (
id text not null,
email text null,
token_data text not null,
update_time timestamp with time zone null,
constraint token_pkey primary key (id)
) TABLESPACE pg_default;
create index IF not exists idx_update_time on public.tokens using btree (update_time) TABLESPACE pg_default;
alter table public.tokens enable row level security;
grant select, insert, update on public.tokens to anon;
create policy "tokens_select_anon"
on public.tokens
for select
to anon
using (true);
create policy "tokens_insert_anon"
on public.tokens
for insert
to anon
with check (true);
create policy "tokens_update_anon"
on public.tokens
for update
to anon
using (true)
with check (true);