这是一个创建于 904 天前的主题,其中的信息可能已经有所发展或是发生改变。
2 条回复 • 2022-09-10 14:57:38 +08:00
 |
|
1
RRRoger 2022-09-10 11:54:42 +08:00
刚接触 sequelize 不久
一对多就直接先 create 明细 然后绑定主表 id
多对多 model.prototype.setXXXs(xxxIds)
|
 |
|
2
chensuiyi 2022-09-10 14:57:38 +08:00
sequelize 关联关系太麻烦了,我已经全面使用 knexjs ,还不错。
|