I'm using Postgres/sequelize .
I need to do bulkupdate and the table is partitioned , so I can't use "Insert into ~ on conflict" .
It looks like I can use bulkCreate with 'updateOnDuplicate' option but I don't know how to define multiple keys. I mean there is no pk in the table but I know two columns together will make unique records.
In this case, how to do bulkupdate ?
Model.bulkCreate(dataToUpdate, { updateOnDuplicate: ["user_id", "token", "created_at"] })