f4e35974c6
Deploy staging to test server / deploy (push) Failing after 14m49s
This reverts commita55c69115d, reversing changes made to02c9c9f3d6.
12 lines
480 B
SQL
12 lines
480 B
SQL
create table public.admin_users (
|
|
user_id uuid primary key references auth.users(id) on delete cascade,
|
|
created_at timestamptz not null default now(),
|
|
created_by uuid not null references auth.users(id),
|
|
revoked_at timestamptz,
|
|
revoked_by uuid references auth.users(id)
|
|
);
|
|
|
|
alter table public.admin_users enable row level security;
|
|
revoke all on table public.admin_users from anon, authenticated;
|
|
grant select, insert, update on table public.admin_users to service_role;
|