Sequelize JS - Delete all the associations using user id

后端 未结 0 1810
攒了一身酷
攒了一身酷 2021-02-20 12:05

User has been associated with other tables as shown below

    models.user.hasOne(models.plan, {foreignKey: \'plan_id\'});
    models.user.hasOne(models.api, { for         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题