# Walk-Through Check-Ins Backend ## Purpose `walkthrough_checkins` stores structured classroom observation records for director-level users. The backend owns tenant scope, campus scope, creator ownership, validation, and role-gated access. ## API All routes require JWT authentication. - `GET /api/walkthrough_checkins`: returns check-ins visible to the current manager. - `GET /api/walkthrough_checkins?teacher_name=`: filters visible check-ins by teacher name. - `POST /api/walkthrough_checkins`: creates one check-in for the current user's organization and campus. - `DELETE /api/walkthrough_checkins/:id`: deletes one visible check-in. ## Access Rules - Director/superintendent-capable generated roles can create, list, and delete check-ins. - Records are scoped to the current user's organization. - Campus-scoped users write records to their current campus. - The frontend does not send organization, campus, creator, or updater fields. ## Data Contract Required mutation fields: - `teacher_name` - `classroom` - `director_name` - `check_in_date` - `check_in_time` - `attitude_rating` - `classroom_management_rating` - `cleanliness_rating` - `vibes_rating` - `team_dynamics_rating` - `emergency_exit_rating` - `lesson_plan_rating` Optional mutation fields: - category comments - `overall_notes` The backend returns normalized DTO rows with tenant and audit fields.