Files
Jyotisha/frontend/supabase/migrations/20260727010000_admin_users.sql
T
linmeng f4e35974c6
Deploy staging to test server / deploy (push) Failing after 14m49s
Revert "merge: sync GitHub staging to Gitea"
This reverts commit a55c69115d, reversing
changes made to 02c9c9f3d6.
2026-07-30 14:38:17 +08:00

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;