有many to many的表,然後我在中間那層做1:n,一個沒問題,多個用用sequelize拉出來就變這樣了
{
"data": {
"id": 1,
"name": "a",
"description": null,
"content": null,
"dateStart": null,
"dateEnd": null,
"serviceTimeStart": null,
"serviceTimeEnd": null,
"recruitStart": null,
"recruitEnd": null,
"limit": null,
"supervisor": null,
"supervisorPhone": null,
"youtubeUrl": null,
"weekdays": [],
"activityRequirement": [
{
"requirementId": 1,
"level": 1
}
],
"activityProof": [
{
"proofId": null
}
],
"activityBonus": [
{
"bonusId": null
}
]
}
}