Skip to content

Instantly share code, notes, and snippets.

@kristajg
Created October 22, 2015 14:23
Show Gist options
  • Save kristajg/b0ed5f6d7f3bc980ca74 to your computer and use it in GitHub Desktop.
Save kristajg/b0ed5f6d7f3bc980ca74 to your computer and use it in GitHub Desktop.
// Vanilla db model for dynamoDB
module.exports = {
TableName: 'preamp-project',
KeySchema: [
{
AttributeName: 'id',
KeyType: 'HASH'
},
{
AttributeName: 'accountId',
KeyType: 'RANGE'
}
],
AttributeDefinitions: [
{
AttributeName: 'id',
AttributeType: 'S'
},
{
AttributeName: 'accountId',
AttributeType: 'S'
},
{
AttributeName: 'name',
AttributeType: 'S'
}
],
ProvisionedThroughput: {
ReadCapacityUnits: 1,
WriteCapacityUnits: 1
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment