db.l3.ai

Play

lessons

what-changed-in-19

editor

engine: not started

results

Run a query to see rows here.

check

Audit trigger

An AFTER trigger sees OLD (the row before) and NEW (after). to_jsonb(OLD) turns a whole row into json. Member 999 is a throwaway row.

task

Write each DELETE on members to audit_log with the old row as jsonb; then delete member 999.

hints