# Dynamodb user table

**URL:** https://community.dreamfactory.com/t/dynamodb-user-table/995
**Category:** Connecting to NoSQL
**Created:** [April 13, 2015, 7:08am UTC](https://community.dreamfactory.com/t/dynamodb-user-table/995 "2015-04-13T07:08:17Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![PBAdmin](https://avatars.discourse-cdn.com/v4/letter/p/db5fbb/32.png) [@PBAdmin](https://community.dreamfactory.com/u/PBAdmin)
#### Post date: [April 13, 2015, 7:08am UTC](https://community.dreamfactory.com/t/dynamodb-user-table/995/1 "2015-04-13T07:08:17Z")

</div>

Is it possible to have the key as a email array like the following setup?

{  
“email”:[ {“email” : "email1@email.com", “type”:“primary”},  
{“email” : "email2@email.com", “type”:“secondary”},  
{“email” : "email3@email.com", “type”:“secondary”}],  
“phone”:[ {“phone” : “8128123713”, “type”:“mobile”},  
{“phone” : “9923402340”, “type”:“home”}],  
“gender”:“1”  
}

I would like to use email array is key which I can pick email as login

---

<div class="post-metadata">

### Author: ![jeffreystables](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/jeffreystables/32/173_2.png) [@jeffreystables](https://community.dreamfactory.com/u/jeffreystables)
#### Post date: [April 13, 2015, 7:18pm UTC](https://community.dreamfactory.com/t/dynamodb-user-table/995/2 "2015-04-13T19:18:39Z")

</div>

You should be able to create this array, but I’m not sure how you would use it as a key or log in with a part of the array. If this is something supported by DynamoDB, it may be possible, but I would check the DynamoDB documentation to confirm. DSP is just a wrapper on DB calls so if Dynamo supports something we should be agnostic of the particulars and still be able to function.
