Skip to content

feat: Drizzle schema for Mini (sessions, soothe events, baby biometrics) #407

@ng

Description

@ng

Context

Add database tables for Sleepypod Mini data. Uses existing Drizzle + SQLite setup.

Tables

mini_sessions

  • id, startTime, endTime, duration
  • averageSootheLevel, maxSootheLevel
  • cryEvents (count of escalations)
  • notes

mini_soothe_events

  • id, sessionId (FK), timestamp
  • fromLevel, toLevel, trigger (auto/manual)
  • duration at level

mini_baby_profile

  • name, birthDate, weight
  • settings (lock, weaning mode, sound type, volume)

mini_device_state

  • lastSeen, firmwareVersion, wifiStrength
  • currentState (asleep, awake, soothing, baseline)
  • currentLevel, currentSound

Baby Biometrics (derived)

  • Sleep duration trends (daily/weekly)
  • Cry detection frequency from soothe escalation patterns
  • Soothe responsiveness (time to settle at each level)
  • Wake pattern analysis (time-of-night distribution)

Parent

Epic: #405

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions