Trigger (database)
Code that runs automatically on INSERT/UPDATE/DELETE of a table — "BEFORE" or "AFTER".
Classic uses: audit log (record changes), compute derived columns, enforce integrity. Powerful but hard to debug — "why did the row change?" can be a trigger several layers deep. Many modern teams avoid them.