我们可以在 moonmail-models 中找到此代码是否有原因:
userId: _joi2.default.string().required(),
body: _joi2.default.string().required(),
subject: _joi2.default.string().required(),
name: _joi2.default.string().required(),
id: _joi2.default.string().required(),
senderId: _joi2.default.string(),
listIds: _joi2.default.array(),
sentAt: _joi2.default.number(),
createdAt: _joi2.default.number(),
scheduledAt: _joi2.default.number(),
status: _joi2.default.string(),
isUpToDate: _joi2.default.boolean(),
template: _joi2.default.string()
但是 MoonMail 的 s-resources-cf.json 中没有等价物:
"CampaignsTable": {
"Type": "AWS::DynamoDB::Table",
"DeletionPolicy": "Retain",
"Properties": {
"AttributeDefinitions": [
{
"AttributeName": "id",
"AttributeType": "S"
},
{
"AttributeName": "userId",
"AttributeType": "S"
},
{
"AttributeName": "sentAt",
"AttributeType": "N"
},
{
"AttributeName": "scheduledAt",
"AttributeType": "N"
}
]
}
}
正文和主题存储在 DynamoDB 中的什么位置?