Files
armonia-api/docs/decisions/0004-multi-session-packages-and-course-ledgers.md
T
kiskaadee 76c4f9fbf7 docs: add SRS, system architecture, ADRs 0001-0004, and raw discovery interview notes
- Add raw-interview-notes.md recording verbatim feedback from Jazmín's assistant
- Add SRS.md specifying buffer intervals, packages, anti-ghosting workflow, and attendance ledgers
- Add architecture.md with component topology, state machines, and collision math
- Add ADRs 0001 through 0004 for Turso, payment verification, buffer times, and package tracking
2026-10-18 09:49:25 -05:00

22 lines
1.5 KiB
Markdown

# ADR 0004: Multi-Session Packages and Digital Course Attendance Ledgers
## Status
Accepted
## Context
Operational interviews revealed that clients frequently purchase therapy as multi-session packages (e.g., 5 or 10 sessions paid upfront). Currently, tracking remaining sessions (e.g. "sesión 8 de 10") is discussed informally at the end of consultations, relying on memory and chat history.
Similarly, for recurring low-cost workshops (*Curso de Abundancia*, $50 MXN/session), Jazmín records attendees and payments on a physical sheet of paper and photographs it to share with her assistant.
## Decision
1. **Package Domain Model**: We introduce a `packages` entity tracking `client_id`, `service_id`, `total_sessions`, and `completed_sessions`. Booking individual sessions decrements available package credits without triggering payment requests.
2. **Digital Workshop Attendance Ledger**: We introduce an `occurrences` and `attendance` model allowing Jazmín or her assistant to record workshop participants and toggle payment status (`attended: true/false`, `payment_method: CASH | SPEI`) with a single mobile tap in `armonia-dashboard`.
## Consequences
### Positive
- Completely replaces physical paper sheets and phone photographs.
- Eliminates awkward verbal disputes over remaining package sessions.
- Enables collaborative coordination between Jazmín and her assistant.
### Negative / Trade-offs
- Adds additional entities (`packages`, `attendance`) to the data model and migration pipeline.