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

Method constructor

lib/database.ts:11–20  ·  view source on GitHub ↗
(scope: Construct, id: string)

Source from the content-addressed store, hash-verified

9 public readonly orderTable: ITable;
10
11 constructor(scope: Construct, id: string) {
12 super(scope, id);
13
14 //product table
15 this.productTable = this.createProductTable();
16 //basket table
17 this.basketTable = this.createBasketTable();
18 //order table
19 this.orderTable = this.createOrderTable();
20 }
21
22 // Product DynamoDb Table Creation
23 // product : PK: id -- name - description - imageFile - price - category

Callers

nothing calls this directly

Calls 3

createProductTableMethod · 0.95
createBasketTableMethod · 0.95
createOrderTableMethod · 0.95

Tested by

no test coverage detected