select
  t.tgname as trigger_name,
  pg_get_triggerdef(t.oid) as trigger_def,
  p.proname as function_name,
  n.nspname as function_schema
from pg_trigger t
join pg_proc p on p.oid = t.tgfoid
join pg_namespace n on n.oid = p.pronamespace
join pg_class c on c.oid = t.tgrelid
where not t.tgisinternal
  and c.relname = 'patient_intake_requests'
order by t.tgname;
