MCPcopy Create free account
hub / github.com/awsrun/aws-microservices / createProductTable

Method createProductTable

lib/database.ts:24–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22 // Product DynamoDb Table Creation
23 // product : PK: id -- name - description - imageFile - price - category
24 private createProductTable() : ITable {
25 const productTable = new Table(this, 'product', {
26 partitionKey: {
27 name: 'id',
28 type: AttributeType.STRING
29 },
30 tableName: 'product',
31 removalPolicy: RemovalPolicy.DESTROY,
32 billingMode: BillingMode.PAY_PER_REQUEST
33 });
34 return productTable;
35 }
36
37 // Basket DynamoDb Table Creation
38 // basket : PK: userName -- items (SET-MAP object)

Callers 1

constructorMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected