- 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> |
||
|---|---|---|
| .. | ||
| 001_cloud_levels.sql | ||
| 002_user_mapping.sql | ||
| 003_leaderboard_user_mapping.sql | ||
| 004_admins_use_internal_id.sql | ||
| 005_user_tokens.sql | ||
| 006_level_history.sql | ||