Skip to content

Commit fc71bd9

Browse files
author
DJ
committed
create auth with jwts
1 parent 5405e6e commit fc71bd9

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

test/fixtures/createTable.js

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ AWS.config.update({
1010
var dynamodb = new AWS.DynamoDB();
1111

1212
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');
1413

1514
_(resources)
1615
.pickBy(resource => {

test/fixtures/habit_table_structure.yaml

+20
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ Resources:
3636
-
3737
AttributeName: created_at
3838
AttributeType: S
39+
-
40+
AttributeName: email
41+
AttributeType: S
3942

4043
KeySchema:
4144
-
@@ -48,5 +51,22 @@ Resources:
4851
ProvisionedThroughput:
4952
ReadCapacityUnits: 5
5053
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
5171

5272
TableName: user-records

0 commit comments

Comments
 (0)