-- table for capturing errors that occur inside the send_fcm edge function -- when it is invoked via database trigger. This makes it easier to debug -- production failures without needing to inspect external logs. create table if not exists public.send_fcm_errors ( id uuid default gen_random_uuid() primary key, payload jsonb, error text, stack text, created_at timestamptz default now() );