kcar 10314ddd62 feat(db): exam-marker operational tables + RLS (72-exam-marker.sql)
Adds the 7 Supabase tables (exam_templates, exam_questions, exam_response_areas,
exam_boundaries, marking_batches, student_submissions, mark_entries) with FKs,
indexes, updated_at triggers (reusing handle_updated_at), and inline RLS.

Authorization owned by this layer (exam API calls as-user): per-table service_role
passthrough + as-user policies scoped via user_institute_ids() (from 71); marks
readable by the owning teacher's batch and by the student themselves (UI deferred).
marking_batches.class_id FKs to public.classes (71).

Applied + verified on dev .94: 7 tables, RLS on, class_id FK valid, teacher can
insert+read a template under RLS. Stacked on feat/class-management-foundation.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-06 16:11:52 +00:00
2026-02-22 21:54:19 +00:00
2025-11-14 14:46:49 +00:00
ddd
2026-05-13 22:38:05 +00:00
Description
Self-hosted Supabase stack (17 services) for Classroom Copilot — PostgreSQL, Auth, Storage, Realtime, Edge Functions
385 KiB
Languages
TypeScript 86.6%
PLpgSQL 13.1%
Dockerfile 0.3%