LifeMate — Personal, Family & Learning Companion
docs/offline-data-rescue-options
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
| 1 | alter table learning_goal add column version integer not null default 1 check(version > 0); |
| 2 | alter table learning_goal add column archived_at timestamptz; |
| 3 | update learning_goal set archived_at=updated_at where status='archived'; |
| 4 | alter table learning_goal add constraint learning_goal_archive_state check((status='archived')=(archived_at is not null)); |
| 5 | alter table learning_goal add constraint learning_goal_id_owner_unique unique(id,owner_user_id); |
| 6 | |
| 7 | create table learning_goal_mutation ( |
| 8 | owner_user_id uuid not null references app_user(id) on delete cascade, |
| 9 | mutation_id uuid not null, |
| 10 | goal_id uuid not null, |
| 11 | operation text not null check(operation in ('create','update','archive')), |
| 12 | request_hash text not null check(request_hash ~ '^[a-f0-9]{64}$'), |
| 13 | applied_version integer not null check(applied_version > 0), |
| 14 | accepted_at timestamptz not null default now(), |
| 15 | primary key(owner_user_id,mutation_id), |
| 16 | foreign key(goal_id,owner_user_id) references learning_goal(id,owner_user_id) on delete cascade |
| 17 | ); |
| 18 | create index learning_goal_mutation_goal_idx on learning_goal_mutation(owner_user_id,goal_id); |