happy ending
This commit is contained in:
@@ -20,6 +20,15 @@ begin
|
||||
end;
|
||||
$$;
|
||||
|
||||
-- =========================
|
||||
-- Tables
|
||||
-- =========================
|
||||
|
||||
create table if not exists public.admin_users (
|
||||
user_id uuid primary key references auth.users(id) on delete cascade,
|
||||
created_at timestamptz not null default timezone('utc', now())
|
||||
);
|
||||
|
||||
create or replace function public.is_admin(_uid uuid)
|
||||
returns boolean
|
||||
language sql
|
||||
@@ -32,15 +41,6 @@ as $$
|
||||
);
|
||||
$$;
|
||||
|
||||
-- =========================
|
||||
-- Tables
|
||||
-- =========================
|
||||
|
||||
create table if not exists public.admin_users (
|
||||
user_id uuid primary key references auth.users(id) on delete cascade,
|
||||
created_at timestamptz not null default timezone('utc', now())
|
||||
);
|
||||
|
||||
create table if not exists public.profiles (
|
||||
user_id uuid primary key references auth.users(id) on delete cascade,
|
||||
username citext not null unique,
|
||||
|
||||
Reference in New Issue
Block a user