My apologies if this is a stupid question, but I can't seem to find an answer. I'm new to developing Alexa skills, so please excuse my ignorance.
Basically, I want to save the data of multiple users (children) in the same household to a DynamoDB table. The problem I'm running into is that the 'save attributes' process seems to only work if the DynamoDB table uses userId as the Partition Key. This causes only a single record to exist in the table and every time the skill is opened, the data is overwritten by the current user.
How do I get the lambda function to create another record in the table if the userId will always be the same?
Currently, I'm using Node.js and saving a string (name) and an array (items). But as I mentioned earlier, each time the skill is launched, the values are overwritten.
Thanks in advance.