Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is the purpose of the sleep_schedule_samples table? #1

Open
songzhiming opened this issue Oct 29, 2024 · 2 comments
Open

What is the purpose of the sleep_schedule_samples table? #1

songzhiming opened this issue Oct 29, 2024 · 2 comments

Comments

@songzhiming
Copy link

Hello, I'm researching the HealthKit database and haven't figured out what this table is for.
image

@christophhagen
Copy link
Owner

To my knowledge, the table contains the user settings for sleep schedules. The user can set the phone to sleep mode where notifications are silenced (See iPhone Settings > Focus > Sleep). The schedules can be created in the health app (in the Sleep view) for different days with a beginning and an end time. That's what the individual columns in the table represent:
The weekdays on which the schedule is applied, and the beginning and end time of the period for which the phone is in sleep mode.

@songzhiming
Copy link
Author

Thank you very much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants