-
-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathhealthdb.sql
More file actions
28 lines (26 loc) · 963 Bytes
/
healthdb.sql
File metadata and controls
28 lines (26 loc) · 963 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
select
-- iPhone 7 (9.3.1)
sources.name,
case datatype_source_order.data_type -- https://www.sans.org/cyber-security-summit/archives/file/summit-archive-1528385073.pdf
when 3 then 'Weight'
when 5 then 'Heart Rate'
when 7 then 'Steps'
when 8 then 'Distance'
when 9 then 'Resting Energy'
when 10 then 'Active Energy'
when 12 then 'Flights Climbed'
when 67 then 'Weekly Calorie Goal'
when 70 then 'Watch On'
when 75 then 'Standing'
when 76 then 'Activity'
when 79 then 'Workout'
when 83 then 'Some workouts'
else datatype_source_order.data_type -- 20’s ~ 30’s = Nutrition
end as 'DataType',
subscription_data_anchors.last_anchor,
datatype_source_order.ROWID,
datatype_source_order.user_preferred,
datatype_source_order.provenance
from datatype_source_order
join sources on datatype_source_order.source = sources.ROWID
join subscription_data_anchors on subscription_data_anchors.code = datatype_source_order.data_type