Teachers can now send entry prompts to parents requesting their child enter the classroom. Features include: - Entry prompts API with create, list, and respond endpoints - Real-time notifications via WebSocket to parents - Parent can accept (enters child) or decline prompts - Configurable expiry time per classroom (default 30 min) - Classroom name editing in settings popover - Active sessions API returns sessions for all enrolled students - E2E and unit tests for the complete feature Also fixes bug where expired prompts could block creating new prompts. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
6 lines
301 B
SQL
6 lines
301 B
SQL
-- Custom SQL migration file, put your code below! --
|
|
-- Add entry_prompt_expiry_minutes column to classrooms table
|
|
-- Allows teachers to configure their default entry prompt expiry time
|
|
-- NULL means use system default (30 minutes)
|
|
ALTER TABLE `classrooms` ADD `entry_prompt_expiry_minutes` integer;
|