LifeMate — Personal, Family & Learning Companion
test/personal-notification-settings
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 | \set ON_ERROR_STOP on |
| 2 | begin; |
| 3 | |
| 4 | insert into app_user(id,identity_subject,email_normalized) values |
| 5 | ('40000000-0000-0000-0000-000000000001','p4-owner','p4-owner@example.test'); |
| 6 | |
| 7 | insert into profile(user_id,display_name) values |
| 8 | ('40000000-0000-0000-0000-000000000001','P4 Owner'); |
| 9 | |
| 10 | insert into learning_goal(id,owner_user_id,title,target) values |
| 11 | ('41000000-0000-0000-0000-000000000001','40000000-0000-0000-0000-000000000001','Goal','Target'); |
| 12 | |
| 13 | insert into learning_checkin(owner_user_id,learning_goal_id,confidence,difficulty,note) values |
| 14 | ('40000000-0000-0000-0000-000000000001','41000000-0000-0000-0000-000000000001',4,3,'note'); |
| 15 | |
| 16 | insert into wellbeing_checkin(owner_user_id,mood,energy,stress,note,visibility) values |
| 17 | ('40000000-0000-0000-0000-000000000001',4,3,2,'private note','private'); |
| 18 | |
| 19 | insert into ai_guide_session(id,owner_user_id,guide_kind) values |
| 20 | ('42000000-0000-0000-0000-000000000001','40000000-0000-0000-0000-000000000001','wellbeing'); |
| 21 | |
| 22 | insert into ai_guide_message(session_id,author,body,safety_class) values |
| 23 | ('42000000-0000-0000-0000-000000000001','user','hello','ordinary'); |
| 24 | |
| 25 | insert into wellbeing_safety_event(owner_user_id,source_session_id,severity) values |
| 26 | ('40000000-0000-0000-0000-000000000001','42000000-0000-0000-0000-000000000001','urgent_review'); |
| 27 | |
| 28 | insert into ai_plan_proposal(owner_user_id,session_id,title,proposal) values |
| 29 | ('40000000-0000-0000-0000-000000000001','42000000-0000-0000-0000-000000000001','Plan','{"steps":[1,2]}'::jsonb); |
| 30 | |
| 31 | do $$ |
| 32 | begin |
| 33 | begin |
| 34 | insert into wellbeing_checkin(owner_user_id,mood,energy,stress) |
| 35 | values('40000000-0000-0000-0000-000000000001',6,3,2); |
| 36 | raise exception 'mood constraint failed to reject invalid value'; |
| 37 | exception when check_violation then null; |
| 38 | end; |
| 39 | |
| 40 | begin |
| 41 | insert into ai_guide_session(owner_user_id,guide_kind) |
| 42 | values('40000000-0000-0000-0000-000000000001','diagnostician'); |
| 43 | raise exception 'guide kind constraint failed'; |
| 44 | exception when check_violation then null; |
| 45 | end; |
| 46 | end $$; |
| 47 | |
| 48 | rollback; |