space-game/supabase
Michael Mainguy 9440be3251 Add level change history system with database trigger
- 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>
2025-12-09 07:46:31 -06:00
..
migrations Add level change history system with database trigger 2025-12-09 07:46:31 -06:00
policies.sql Fix ship physics init order and Supabase RLS user sync 2025-12-01 07:00:24 -06:00
schema.sql Add level hints system for event-triggered audio playback 2025-12-01 08:45:20 -06:00