Skip to content

Commit 58f50df

Browse files
committed
update schema
1 parent 1bc763c commit 58f50df

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

cloudformation/main.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,11 +318,20 @@ Resources:
318318
PointInTimeRecoverySpecification:
319319
PointInTimeRecoveryEnabled: !If [IsProd, true, false]
320320
AttributeDefinitions:
321-
- AttributeName: id
321+
- AttributeName: requestId
322+
AttributeType: S
323+
- AttributeName: userId
322324
AttributeType: S
323325
KeySchema:
324-
- AttributeName: id
326+
- AttributeName: requestId
325327
KeyType: HASH
328+
GlobalSecondaryIndexes:
329+
- IndexName: UserIdIndex
330+
KeySchema:
331+
- AttributeName: userId
332+
KeyType: HASH
333+
Projection:
334+
ProjectionType: ALL
326335

327336
IamGroupRolesTable:
328337
Type: "AWS::DynamoDB::Table"

0 commit comments

Comments
 (0)