1 | 'use strict';
|
2 |
|
3 |
|
4 | module.exports = {
|
5 | AttributeDefinitions: [
|
6 | {
|
7 | AttributeName: 'id',
|
8 | AttributeType: 'S'
|
9 | },
|
10 | {
|
11 | AttributeName: 'filename',
|
12 | AttributeType: 'S'
|
13 | }
|
14 | ],
|
15 | GlobalSecondaryIndexes: [
|
16 | {
|
17 | IndexName: 'filename_index',
|
18 | KeySchema: [
|
19 | {
|
20 | AttributeName: 'filename',
|
21 | KeyType: 'HASH'
|
22 | }
|
23 | ],
|
24 | Projection: {
|
25 | ProjectionType: 'ALL'
|
26 | },
|
27 | ProvisionedThroughput: {
|
28 | ReadCapacityUnits: 1,
|
29 | WriteCapacityUnits: 1
|
30 | }
|
31 | }
|
32 | ],
|
33 | KeySchema: [
|
34 | {
|
35 | AttributeName: 'id',
|
36 | KeyType: 'HASH'
|
37 | }
|
38 | ],
|
39 | ProvisionedThroughput: {
|
40 | ReadCapacityUnits: 1,
|
41 | WriteCapacityUnits: 1
|
42 | }
|
43 | };
|