- registerStudentRoutes / registerStudentFaceRoutes / registerStudentApiRoutes
забирают все роуты /api/students*, /api/export/student, эталоны и найденные
лица ученика, /api/v1/students* из server.js
- ensureStudentPhotosTable и createStudentProfileAccess перенесены в lib/students.js
- AGENTS.md: задокументированы lib/students.js и lib/student-routes.js в File Map
Check pg_constraint by conname + conrelid so a same-named CHECK on another table cannot skip creation, add the constraint as NOT VALID and validate separately to avoid a long ACCESS EXCLUSIVE lock at boot. Mark lib/students.js as partially extracted in the migration plan.