LifeMate — Personal, Family & Learning Companion

test/personal-recovery-acceptance
chore/phase1-repository-cleanup deploy/stable-web-apk deployment-static design/mobile-accessibility-v2 design/mobile-navigation-review docs/child-education-access-decision docs/offline-data-rescue-options docs/owner-guide-and-delivery-plan docs/phase1-policy-options docs/public-review-live-2026-10-15 feat/aparat-learning-library feat/child-device-safety feat/child-identity-schema feat/flutter-mobile-navigation feat/learning-content-operations feat/local-signing-preflight feat/online-family-stage0 feat/personal-encrypted-recovery feat/private-planner-series-api feat/public-review-page feat/standalone-weekly-planner feat/weekly-planner-android final-feature-1/iran-family-school fix/auth-abuse-expiry-safety fix/auth-expiry-after-lock fix/backend-request-safety fix/lifeguide-bootstrap-naming-ci fix/lifeguide-pages-qa-base-preflight fix/lifeguide-qa-pages-env-deployment fix/local-task-persistence fix/managed-child-session-boundary fix/personal-jalali-dates fix/personal-notification-controls fix/personal-upgrade-delivery-guard fix/sms-approval-gates fix/study-duration-display infra/cloudflare-neon-migration infra/lifeguide-cloudflare-qa infra/lifeguide-github-pages-qa infra/lifeguide-supabase-qa main phase-1/foundation-completion phase-2/product-foundation-identity phase-3/planner-school-family-core phase-4/ai-learning-wellbeing phase-5/hardening-observability-release test/android-reminder-acceptance test/personal-notification-settings test/personal-recovery-acceptance test/role-entry-apk
sql 12 lines 1.2 KB
Raw
1 \set ON_ERROR_STOP on
2
3 do $$
4 begin
5 if not exists(select 1 from information_schema.columns where table_name='profile' and column_name='household_persona') then raise exception 'household persona missing'; end if;
6 if not exists(select 1 from information_schema.tables where table_name='education_profile') then raise exception 'education profile missing'; end if;
7 if not exists(select 1 from information_schema.tables where table_name='menstrual_cycle_entry') then raise exception 'cycle table missing'; end if;
8 if (select count(*) from curriculum_subject where national_grade=7 and school_year='1405-1406') < 10 then raise exception 'grade 7 catalog incomplete'; end if;
9 if not exists(select 1 from curriculum_subject where national_grade=7 and name_fa='ریاضی') then raise exception 'grade 7 mathematics missing'; end if;
10 if exists(select 1 from textbook_catalog where source_host not in ('chap.sch.ir','medu.gov.ir') or source_url !~ '^https://') then raise exception 'untrusted textbook source'; end if;
11 if not exists(select 1 from information_schema.columns where table_name='notification_preference' and column_name='sensitive_preview') then raise exception 'sensitive preview control missing'; end if;
12 end $$;