DynamoDB
In the MBC CQRS serverless, DynamoDB tables are organized into three classes based on their purpose.
taskstable: store information about long-running taskssequencestable: holds sequence data- other tables: can be divided into three types: command tables (with a
-commandpostfix in name), data tables (with a-datapostfix in name), and history tables (with-historyposfix in name). You only need to specify the table name, add the name inprisma/dynamodbs/cqrs.json, and the command below will create the table for you.
The table definition is store in prisma/dynamodbs folder.
For local development, run npm run migrate:ddb to migrate dynamo table.
note
You can apply migrate both dynamoDB and RDS with singe command: npm run migrate.
For actions base on Dynamodb, please refer to the Sequence and CommandModule sections.