in serverless/ivs_moderation/ivs_moderation_stack.py [0:0]
def create_dynamo_db_table(self, tablename):
""" Function to create the dynamodb table """
return db.Table(self, tablename,
partition_key=db.Attribute(
name="id", type=db.AttributeType.STRING),
sort_key=db.Attribute(
name="time", type=db.AttributeType.STRING),
billing_mode=db.BillingMode.PAY_PER_REQUEST
)