Table of Contents | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
...
Commit an order with delivery.dropoff.phoneNumber +222222
Validate record in database
Searching phone in support tool
Customer details
Solution 2 [Preferred]
Solution 2 uses the same strategy as solution 1, the only difference is that it proposes to update the lookup record structure so that it can link multiple phone numbers to multiple customers. Below is a suggestion of the new record:
Info |
---|
We’ll need to implement checks to prevent the creation of multiple lookup records linking the same phone number and customer |
Code Block |
---|
{ pk: `phone_user#${cognitoId}`, pk2: `phone#${phoneNumber}`, sk: `createdAt#${createdAt}`, sk2: 'createdAt#${createdAt}', } |
...