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>
Description
Self-hosted Supabase stack (17 services) for Classroom Copilot — PostgreSQL, Auth, Storage, Realtime, Edge Functions
Languages
TypeScript
86.6%
PLpgSQL
13.1%
Dockerfile
0.3%