3 Commits
Author SHA1 Message Date
dev 326dedc20f Вынести HTTP-слой учеников в lib/student-routes.js
- 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
2026-12-03 12:47:16 +03:00
dev 7a2f8893a6 fix(students): scope status constraint lookup and add it without blocking
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.
2026-10-23 09:19:44 +03:00
dev c2cc7db26d feat(students): add active/paused/left status with hidden filter 2026-10-23 09:14:19 +03:00