- Create level_history table storing previous and new state snapshots - Add trigger that automatically logs meaningful changes to levels - Track change_type: update, submitted, published, rejected - RLS policies for user and admin access to history - Add RPC functions for querying history and entries - Set user context in save_level_by_token for proper attribution 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| migrations | ||
| policies.sql | ||
| schema.sql | ||