1b8d6fcce6
Add database-backed administrators, configurable Alipay packages, idempotent payment settlement and platform reporting. Standardize Gitea workflows on the xiaoxin runner so reviewed staging commits are tested, packaged, and deployed by immutable image digest.
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;
|