-
Notifications
You must be signed in to change notification settings - Fork 7
/
dynamodb.yml
101 lines (96 loc) · 2.54 KB
/
dynamodb.yml
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# NOTE: this is just used for testing
schemas:
nps_survey:
-
type: HashKey
name: agency_id
data_type: NUMBER
-
type: RangeKey
name: profile_id
data_type: NUMBER
change_in_condition:
-
type: HashKey
name: carelog_id
data_type: NUMBER
-
type: RangeKey
name: time
data_type: NUMBER
hash_only:
-
type: HashKey
name: agency_subdomain
data_type: STRING
map_field:
-
type: HashKey
name: agency_subdomain
data_type: STRING
global_indexes:
change_in_condition:
-
name: SavedInRDB
type: GlobalAllIndex
throughput:
read: 15
write: 15
parts:
-
type: HashKey
name: saved_in_rdb
data_type: NUMBER # set to 0 when not saved
-
type: RangeKey
name: time
data_type: NUMBER
hash_only:
-
name: HashOnlyExternalId
type: GlobalAllIndex
parts:
-
type: HashKey
name: external_id
data_type: NUMBER
indexes:
change_in_condition:
-
name: SessionId
type: AllIndex
parts:
-
type: HashKey
name: carelog_id
data_type: NUMBER
-
type: RangeKey
name: session_id
data_type: NUMBER
columns: # not required by dynamodb, but helps us remember what data might be in there...
nps_survey:
recommend_score: NUMBER
comments: STRING
favorite: STRING
change: STRING
change_in_condition:
saved_in_rdb: NUMBER
session_id: NUMBER
rdb_id: NUMBER
3_overall_differences: NUMBER
3_reduced_alertness: NUMBER
3_agitated_confused: NUMBER
3_pain: NUMBER
4_mobility: NUMBER
4_stand_walk_changed: NUMBER
4_fall_or_slip: NUMBER
5_eating_drinking_changed: NUMBER
6_toileting: NUMBER
6_urination_change: NUMBER
6_constipation: NUMBER
7_skin_condition_swelling: NUMBER
7_skin_rash_wound: NUMBER
default_throughput:
read: 10
write: 10