-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Model-119): add allowScan fieldMerge pull request #293 from Saji…
…dHamza9/feat/119-allowScan feat(Model): add allowScan field
- Loading branch information
Showing
5 changed files
with
52 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import Model from "../../src"; | ||
import { HashKeyEntity } from "./hashkey"; | ||
import documentClient from './common'; | ||
|
||
export default class AllowScanModel extends Model<HashKeyEntity> { | ||
protected tableName = 'table_test_allowScan'; | ||
|
||
protected allowScan = false; | ||
|
||
protected pk = 'hashkey'; | ||
|
||
protected documentClient = documentClient; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { CreateTableCommandInput } from "@aws-sdk/client-dynamodb"; | ||
|
||
export default { | ||
AttributeDefinitions: [ | ||
{ | ||
AttributeName: 'hashkey', | ||
AttributeType: 'S', | ||
}, | ||
], | ||
KeySchema: [ | ||
{ | ||
AttributeName: 'hashkey', | ||
KeyType: 'HASH', | ||
}, | ||
], | ||
ProvisionedThroughput: { | ||
ReadCapacityUnits: 5, | ||
WriteCapacityUnits: 5, | ||
}, | ||
TableName: 'table_test_allowScan', | ||
} as CreateTableCommandInput; |