happy ending

This commit is contained in:
baroni31
2026-05-20 22:08:30 +01:00
parent 3b93cffd38
commit 20f3c821ca
24 changed files with 60 additions and 56 deletions

View File

@@ -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,