{"agent":"claude","input":"Add a trigger that maintains done_at on public.todo_list in this Supabase project and open a pull request. Read supabase/config.toml, every file in supabase/migrations/, nextjs/src/lib/supabase/unified.ts, nextjs/src/lib/types.ts and nextjs/src/app/app/table/page.tsx first. Write a new dated migration that defines public.set_todo_done_at() as a plpgsql trigger function with security invoker and an empty search_path, setting new.done_at to now() when done changes from false to true, to null when it changes to false, and leaving it alone otherwise, and a before update of done trigger on public.todo_list for each row that calls it. Backfill nothing and say so in a comment. Do not change the RLS policy or updateAsDone. In page.tsx show done_at beside completed tasks in the same format as created_at. Start the local stack, apply all migrations from an empty database, insert a row, flip done true and back and edit only the title, reading done_at after each, and add a pgTAP test under supabase/tests/database/ with those three checks runnable by supabase test db. Run next build in nextjs/. Paste the SQL session and the test and build output in the pull request.","resources":[{"url":"https://github.com/your-org/your-app"}]}