@davoodmehraban89 / LifeMate / commits / a2ee87b
Fork 0

LifeMate — Personal, Family & Learning Companion

docs: define conceptual domain model

davoodmehraban89 committed Oct 5, 2026 at 06:27 UTC a2ee87b5e17e73b588c3fc6be02a3bdd7f76b36c
1 file changed +50
docs/architecture/DOMAIN_MODEL_V1.md new
+50
@@ -0,0 +1,50 @@
1 +# LifeMate — Conceptual Domain Model v1
2 +
3 +## Identity
4 +- **Account** — authentication identity; credentials/session are not family-shared.
5 +- **Profile** — person-facing identity and preferences.
6 +- **LifeContext** — Student, Work, Personal or future contexts attached to Profile.
7 +
8 +## Family
9 +- **FamilyWorkspace** — tenant/boundary for family-shared data.
10 +- **Membership** — Profile ↔ FamilyWorkspace with status and administrative capabilities.
11 +- **GuardianRelationship** — explicit adult ↔ minor relationship; permissions depend on this relation, not only generic role names.
12 +- **Invitation** — expiring/revocable join intent.
13 +- **SharingGrant** — resource-level audience/visibility representation where policy allows.
14 +
15 +## Planning
16 +- **PlanItem** — common scheduling identity for task/event/study/family commitments where shared fields are useful.
17 +- **Task** — actionable item with status, priority, duration and optional due time.
18 +- **CalendarEvent** — time-bound commitment.
19 +- **Routine** — repeatable behavior/template.
20 +- **Goal** — outcome with optional linked plan items.
21 +- **Reminder** — delivery rule linked to a resource; obsolete reminders are cancelled on completion/reschedule.
22 +
23 +## School
24 +- **AcademicYear** → **Term**.
25 +- **Subject** belongs to a Student LifeContext and academic period.
26 +- **ClassSession** represents timetable occurrences/rules.
27 +- **Assignment**, **Exam**, **StudySession**, **Grade**, **RevisionPlan** attach to Subject/period as appropriate.
28 +
29 +## Wellbeing / AI
30 +- **GuideSession** — AI interaction session with explicit guide type and context scope.
31 +- **CheckIn** — structured self-reported mood/energy/stress signals; not a diagnosis.
32 +- **ParentInsight** — derived, policy-controlled support summary; never assumed to equal raw transcript.
33 +- **SafetyEvent** — separately governed event for defined safety escalation conditions.
34 +- **AIProposal** — suggested plan/action requiring user confirmation unless a future policy explicitly permits safe automation.
35 +
36 +## Governance
37 +- **AuditEvent** — immutable security/policy-relevant event metadata.
38 +- **NotificationPreference** and **QuietHours** — per-profile delivery policy.
39 +- **DeviceSubscription** — push endpoint/device metadata without becoming identity authority.
40 +
41 +## Ownership invariants
42 +- Personal resources have an owning Profile.
43 +- Family resources have a FamilyWorkspace and creator/owner semantics.
44 +- School resources belong to the student's Profile/LifeContext, not to the parent account.
45 +- Guardian visibility is computed from relationship + resource policy + age/safety policy.
46 +- Admin capability never implies blanket read access to private content.
47 +- AI retrieval is downstream of the same authorization decision as human-facing APIs.
48 +
49 +## Data lifecycle principles
50 +Membership removal revokes future access. Retention/export/deletion rules for shared and wellbeing data are explicit policy decisions; no cascade behavior is assumed merely because a relationship ends.
\ No newline at end of file