G1 add homework field to lessons API

This commit is contained in:
2026-07-24 19:20:42 +01:00
parent e48dd73fdf
commit 0ba72e4259
5 changed files with 43 additions and 7 deletions
@@ -0,0 +1,14 @@
-- G1: Homework as a first-class lesson/planner field.
-- Apply to DEV Supabase only before promoting app/api changes.
alter table if exists public.taught_lessons
add column if not exists homework text not null default '';
alter table if exists public.planned_lessons
add column if not exists homework text not null default '';
comment on column public.taught_lessons.homework is
'Teacher-authored homework for this taught lesson; surfaced in lesson/timetable views.';
comment on column public.planned_lessons.homework is
'Default homework carried by a lesson plan and copied to a taught lesson when delivered.';