-- returning null to the client. This made every admin check silently fail. -- Fix: a SECURITY DEFINER function bypasses RLS when checking admin status, -- so the profiles policy is no longer ...
created_at TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP, updated_at TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP created_at TIMESTAMP WITH TIME ZONE ...