File tree 2 files changed +20
-1
lines changed
2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ AWS.config.update({
10
10
var dynamodb = new AWS . DynamoDB ( ) ;
11
11
12
12
const { Resources : resources = null } = YAML . load ( './habit_table_structure.yaml' ) ;
13
- //YAML.load('C:\\Users\\shamblid\\Documents\\Projects\\habit-loop-server\\test\\fixtures\\habit_table_structure.yaml');
14
13
15
14
_ ( resources )
16
15
. pickBy ( resource => {
Original file line number Diff line number Diff line change @@ -36,6 +36,9 @@ Resources:
36
36
-
37
37
AttributeName : created_at
38
38
AttributeType : S
39
+ -
40
+ AttributeName : email
41
+ AttributeType : S
39
42
40
43
KeySchema :
41
44
-
@@ -48,5 +51,22 @@ Resources:
48
51
ProvisionedThroughput :
49
52
ReadCapacityUnits : 5
50
53
WriteCapacityUnits : 5
54
+
55
+ GlobalSecondaryIndexes :
56
+ -
57
+ IndexName : EmailIndex
58
+ KeySchema :
59
+ -
60
+ AttributeName : email
61
+ KeyType : HASH
62
+ -
63
+ AttributeName : created_at
64
+ KeyType : RANGE
65
+
66
+ Projection :
67
+ ProjectionType : ALL
68
+ ProvisionedThroughput :
69
+ ReadCapacityUnits : 5
70
+ WriteCapacityUnits : 5
51
71
52
72
TableName : user-records
You can’t perform that action at this time.
0 commit comments